This project aims to implement Bazar.com, the world's smallest book store, with a two-tier web design employing microservices. The front-end tier accepts user requests, while the back-end consists of a catalog server and an order server. This README will guide you through setting up and testing the system.
The project consists of three main components:
- Frontend: Handles user requests and communicates with backend services.
- Catalog Server: Manages the catalog of books and supports queries and updates.
- Order Server: Handles purchase requests and updates stock accordingly.
Each component is implemented as a microservice and communicates with others via HTTP REST calls.
Before running the project, ensure you have the following installed:
- Docker
- Docker Compose
- Node.js (for local development)
-
Clone the repository to your local machine:
git clone https://github.com/yazansedih/Bazar.com.git
-
Navigate to the project directory:
cd Bazar.com
-
Build the Docker images and start the containers:
docker-compose up --build
-
The system should now be running on Docker containers. You can access the frontend at
http://localhost:8082
.
- Node.js: Backend development platform.
- Postman: API building, testing and documentation tool.
- Git: Version control system.
- Axios: making and managing HTTP requests.
The API is fully documented using Postman. Access the documentation here.
We have employed Postman for comprehensive API testing to ensure the functionality, reliability, and accuracy of the Bazar.com.
Click on the following link to watch the testing demo video.
Bazar.com lab2 coming soon...