Enter the following commands in your terminal:
git clone https://github.com/roozbehrahmani/stadio_challenage
cd stadio_challenage
make up
make setup
make increase_coca
make increase_coffee
You can use the following command to view the list of APIs:
make route
Or use a postman
file postman_collection is placed in the project to access the APIs.
Complete list of commands to use when running the program:
Command | Description |
---|---|
up | Create and start containers |
down | Stop and remove resources |
build | Build or rebuild services |
test | Run php artisan test command on stadio_challenage container |
setup | Run php artisan redis:setup command on stadio_challenage container |
increase_coca | Run product:increase coca 100 command on stadio_challenage container |
increase_coffee | Run product:increase coffee 100 command on stadio_challenage container |
redis | Go to redis container's bash |
env | Show .env file from stadio_challenage container |
route | Show route list from stadio_challenage container |