This application is structured as a microservices architecture, consisting of three core components:
- API Gateway: The main entry point for client requests, responsible for routing to the appropriate services.
- Orders Microservice: Manages order creation, processing, and coordination with inventory.
- Inventory Microservice: Maintains inventory details and ensures availability checks for order processing.
To initialize and run all services together, use Docker Compose:
docker-compose up --build
To run the unit tests, first make the test script executable:
chmod +x ./runtests.sh
Then execute the script to run all tests:
./runtests.sh
To view the API documentation, navigate to http://localhost:3000/api-docs/.