This project has been done for a technical interview. 2nd time I am using Laravel, some improvements can be done.
Create a copy of the .env.example and update it if needed
cp .env.example .env
Create a copy of the src/.env.example and update it if needed
cp src/.env.example src/.env
Run docker
docker-compose up -d --build
Install the dependencies
docker-compose run --rm composer install
docker-compose run --rm npm install
Create the database schema
docker-compose run --rm artisan migrate
Add some fake data
docker-compose run --rm artisan db:seed
Generate keys for the app
docker-compose run --rm artisan key:generate
docker-compose run --rm artisan passport:install
Run the app
docker-compose run --rm npm run dev
App : http://localhost:8088/
phpMyAdmin : http://localhost:8080/
Swagger documentation : http://localhost:8088/api/documentation
docker-compose run --rm artisan test
composer : docker-compose run --rm composer COMPOSER_COMMAND
npm : docker-compose run --rm npm NPM_COMMAND
artisan : docker-compose run --rm artisan ARTISAN_COMMAND