Bazar.com is an online bookstore that allows users to search for books and make purchases. It is built using a microservices architecture to improve modularity and scalability.
- Node.js with Express.js – Backend services
- SQLite – Lightweight database
- Axios – Service-to-service communication
- Docker – Containerization of services
This project consists of three separate services, each running on its own server:
catalog-service– Runs on port 3000, handles book searchorder-service– Runs on port 3001, handles book purchasesfrontend-service– Runs on port 3002, acts as an API gateway
Request Flow:
- Search queries → forwarded to
catalog-service - Purchase requests → forwarded to
order-service order-servicecommunicates withcatalog-serviceto verify stock
cloane the repo https://github.com/AreenHalabe/Book_Store.git
make sure you inside Book_Store
docker-compose up --build