This project was developed as part of a microservices course. It demonstrates the implementation of various microservices, each with specific functionalities, and their orchestration using Docker and Docker Compose.
-
Eureka Server
- Service Discovery Server
- Port:
8761
-
Product Service
- Manages products and their details
- Port:
8081
-
Cart-Orders Service
- Manages cart and orders
- Port:
8085
-
Review Service
- Manages product reviews
- Port:
8086
-
Auth Service
- Handles authentication
- Port:
8082
-
Gateway Service
- API Gateway for routing
- Port:
8083
- Java 17
- Maven
- Docker
- Docker Compose
Follow these steps to set up and run the project:
-
Clean and Package the Applications
Navigate to the root directory and run:
mvn clean package -DskipTests
-
Build Docker images
In the root directory, run the bash script:
./build_docker_images.sh
-
Start the services In the root directory, use Docker Compose to start the services
docker-compose down docker-compose up -d
detailed API documentation for each service is available in .json format
- docs/Auth.postman_collection.json
- docs/Product.postman_collection.json
- docs/Cart-Orders.postman_collection.json
- docs/Review.postman_collection.json
- Auth service
- create user
- get the token
- Procuct service
- create product
- filter products
- Cart-Orders service
- create cart
- get full cart