This is a simple cart api application, the following operations are implemented:
- Add Items to Cart
- Get Cart information
- Checkout cart
- CRUD for Product
- Create User
- Login User
The details of how the application works are provided in the schematics folder.
Here is a list of the available schemas:
- Actions: Detailed explanation of the actions that can be done on the system. Can be opened on Diagrams.net.
- Endpoints: OpenAPI 3 specification of the endpoints
- docker-compose (or simillar)
After cloning the application copy the .env.sample file
cp .env.sample .env
The database and rabbitmq envs are already set for the docker-compose services. Please remember to update the MAILER_DSN, so you can properly test the mailer service.
docker-compose up -d
With this the application will be available at localhost:8080
Dependencies should already be installed when bringing up the container, but if needed, they can be installed through the following command.
docker-compose exec app composer install
docker-compose exec app php bin/console.php app:listener:checkout-email-schedules
docker-compose exec app composer test