This is a simple case study created by Brian Verschoore
- Clone repository
- copy .env.example to .env
- add following line to your hosts file (/etc/hosts)
#laravel Test
127.0.0.1 mysql redis memcached
- Run
composer install
. - Start Sail
vendor/bin/sail up
. - Install and run npm. This can be done using sail (in another terminal window)
vendor/bin/sail npm install
&vendor/bin/sail npm run prod
. - Set the app key
vendor/bin/sail artisan key:generate
. - Run the migrations using
vendor/bin/sail artisan migrate
optionaly you can add the--seed
flag to directly get some example data. - Create your 'admin' user using
php artisan user:create
and follow the instructions to provide a name, email and password. - Finally, you can find your site at localhost.
- please make sure no other docker or apache/nginx/mysql... services are running as this might cause certain ports to be already taken.
- One of the packages installed barryvdh/laravel-ide-helper allows for easy properties generation,
this can be done by running
composer update-models
once connection has been setup to a database.