This project is developed using Spring Boot and is an example of an API developed with a microservices architecture for e-commerce platforms. The project consists of the following services:
- InventoryService: Manages product inventory.
- OrderService: Manages orders.
- NotificationService: Sends notifications to users.
- ProductService: Manages products.
- Discovery: Provides Eureka service discovery.
- API Gateway: Provides a central access point to all services.
Used to manage product inventory.
- Checks stock availability.
GET /api/inventoryManages order processing.
- Creates orders.
POST /api/orderManages product information.
- Adds products.
- Displays product details.
GET /api/productProvides service discovery using Eureka. It allows all microservices to find and communicate with each other.
- Service registration and discovery.
- Dynamic load balancing.
Provides a central access point to all services. It routes requests to the appropriate microservices.
- Centralized authentication.
- Load balancing.
- API routing.
- JDK 17
- Docker
- Clone the project:
git clone https://github.com/your-username/ecommerce-microservices-api.git
cd ecommerce-microservices-api- Start the services with Docker Compose:
docker-compose -f docker-compose.yml up -d- Access the Eureka Dashboard:
http://localhost:8761- Access the services through the API Gateway:
http://localhost:8080