To set up your local dev environment, follow these steps:
- Clone the repo
- Run
cp .env.example .env
to create a local environment file - Run
docker-compose up -d
to start the app - Run
docker-compose exec app composer install
to install dependencies - Run
docker-compose exec app php artisan key:generate
to generate an app key - Run
docker-compose exec app php artisan migrate:fresh --seed
to run migrations and seed the database - Map
php-laravel-assignment.nl
to localhost or 127.0.0.0 in your hosts file - Visit http://php-laravel-assignment.nl in your browser