A Spring Boot-based microservices application for e-commerce operations consisting of three core services: User Service, Product Service, and Order Service.
- User Service: Manages user accounts, authentication, and profiles
- Product Service: Handles product catalog and inventory management
- Order Service: Manages order processing and fulfillment
- Java 11+: Download JDK
- Maven 3.6+: Download Maven
- Docker & Docker Compose: Download Docker Desktop
- MySQL 8.0+: (Optional - services use databases)
E-Commerce-Microservice/
├── User Service/ # User management and authentication
├── Product Service/ # Product catalog and inventory
├── Order Service/ # Order processing
└── docker-compose.yml # Container orchestration
cd e:\PBC Preparation\Backend\SpringBoot Project\E-Commerce-MicroserviceFrom the root directory:
mvn clean installOr build individual services:
cd "User Service" && mvn clean install
cd "Product Service" && mvn clean install
cd "Order Service" && mvn clean installEach service has an application.yml file in src/main/resources/. Review and update database connections, server ports, and other configurations as needed.
docker-compose up -dThis starts all services and dependencies in containers.
Start each service in a separate terminal:
# Terminal 1 - User Service
cd "User Service"
mvn spring-boot:run
# Terminal 2 - Product Service
cd "Product Service"
mvn spring-boot:run
# Terminal 3 - Order Service
cd "Order Service"
mvn spring-boot:run