Skip to content

devloberto/laravel-devenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel Logo devenv Logo

laravel-devenv

This project serves as boilerplate code to easily setup a devenv environment for laravel.

usage

  1. get the boilerplate code
    1. either by just using this repository as template
    2. or by downloading the source code
      project=<YOUR_PROJECT_NAME> # replace <YOUR_PROJECT_NAME> with your project name
      wget -O laravel-devenv.zip https://github.com/devloberto/laravel-devenv/archive/refs/heads/master.zip
      unzip laravel-devenv.zip
      rm laravel-devenv.zip
      mv laravel-devenv-master $project
      cd $project
      # direnv allow
      # optional but recommended at this point
      git init && git add . && git commit -m "initial commit"
  2. scaffold laravel
    composer create-project laravel/laravel
    cd laravel
    npm install
    cd ..
  3. adapt the DB configuration in ./laravel/.env:
    DB_CONNECTION=mysql
    DB_HOST=127.0.0.1
    DB_PORT=3306
    DB_DATABASE=develobearer
    DB_USERNAME=develobear
    DB_PASSWORD=Test-1234
  4. run the database migrations
    php laravel/artisan migrate
  5. start your development environment
    devenv up

Now you should see the laravel page at http://localhost:8000 and the adminer login at http://localhost:8810.

About

boilerplate to easily setup a laravel devenv environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published