You only need docker for this.
Setup:
- Clone this repository.
- Install composer packages by running
docker run --rm -it -v "$(pwd):/app" composer/composer install
command. - Make copy of .env.example file and name it as
.env
. - Make copy of .env.example file and name it as
.env.testing
. In this file delete allDB_
variables and replace them withDB_CONNECTION=sqlite
- Run migrations by running
docker-compose run web php artisan migrate
command. - Fill database by running
docker-compose run web php artisan db:seed
command. - Create empty
database/database.sqlite
file.
Run project:
- Run command
docker-compose up
.
After running the project, you can find it at http://localhost:5000.
Additional commands you can find in the Makefile file.