poc of unique route api for testing implementation of hexagonal design pattern.
- Composer
- Git
- docker-composer 1.26+
make setup
sudo chmod -R 777 storage/
open the file .env
on root of project, and configure 3 env variables
ARQUIVEI_API_BASE_URI=
ARQUIVEI_API_ID=
ARQUIVEI_API_KEY=
make up
make load-database
command | description |
---|---|
make setup |
setup the project |
make up |
execute project containers |
make build |
build project containers |
make stop |
stop project containers |
make restart |
restart project containes |
make logs |
show logs of containers |
make php |
attach php container |
make attach-database |
open database cli interface |
make apply-migrations |
apply project migrations |
make clear |
clear laravel cache |
make load-database |
load api data and storage on api database |
make phpstan |
run phpstan |
make phpcs |
run code style verification |
make phpcbf |
fix code style |
make phpunit |
run project tests |
make coverage |
run project tests and generate coverage html report |
make composer |
open container with instaled php and composer |
make composer-install |
install project dependencies |