How tyagishubhangam/project-micromart works
Micromart is a Spring Boot e-commerce backend organized as independently implemented services, with a React client entering through an API gateway. The documented user journey spans authentication, product discovery, cart operations, order placement and PayPal payment; reviews and category management are additional product capabilities. The excerpts show detailed cart, order, review and payment boundaries, but do not expose most implementations or gateway routing configuration, so those broader links are documented at README level or left unasserted.
Main entry points: GatewayMicroserviceApplication.java API gateway · TestController.java Cart API · ProductController.java Product catalog · UserController.java User API
Components 24
Client and gateway
- React frontend
- API gateway
Gateway-Microservice/src/main/java/com/micromart/Gateway_Microservice/GatewayMicroserviceApplication.java - JWT user filter
Gateway-Microservice/src/main/java/com/micromart/Gateway_Microservice/filters/JWTUserIdFilter.java
Identity
- User API
UserMicroservice/src/main/java/com/micromart/UserMicroservice/controllers/UserController.java - Authentication
UserMicroservice/src/main/java/com/micromart/UserMicroservice/config/SecurityConfig.java - User profiles
UserMicroservice/src/main/java/com/micromart/UserMicroservice/services/UserService.java
Catalog and reviews
- Product catalog
ProductMicroservice/ProductMicroservice/src/main/java/com/micromart/ProductMicroservice/Controllers/ProductController.java - Product operations
ProductMicroservice/ProductMicroservice/src/main/java/com/micromart/ProductMicroservice/services/ProductService/ProductService.java - Categories
ProductMicroservice/ProductMicroservice/src/main/java/com/micromart/ProductMicroservice/services/categoryservice/CategoryService.java - Review API
ReviewMicroservice/src/main/java/com/micromart/ReviewMicroservice/Controllers/ReviewController.java - Review operations
ReviewMicroservice/src/main/java/com/micromart/ReviewMicroservice/ReviewService/ReviewServiceImpl.java - Review records
ReviewMicroservice/src/main/java/com/micromart/ReviewMicroservice/Repositories/ReviewRepo.java
Cart and orders
- Cart API
CartMicroservice/src/main/java/com/micromart/CartMicroservice/Controllers/TestController.java - Cart operations
CartMicroservice/src/main/java/com/micromart/CartMicroservice/CartService/TestCartService.java - Cart contents
CartMicroservice/src/main/java/com/micromart/CartMicroservice/Cart/TestDisplayCart.java - Order API
OrderMicroservice/src/main/java/com/micromart/OrderMicroservice/controllers/OrderController.java - Order operations
OrderMicroservice/src/main/java/com/micromart/OrderMicroservice/services/OrderService.java - Order records
OrderMicroservice/src/main/java/com/micromart/OrderMicroservice/repositories/OrdersRepo.java
Payments
- Payment API
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/controllers/PaymentController.java - PayPal service
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/service/PaypalService.java - Transaction operations
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/service/admin/PaymentService.java - Payment records
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/repository/PaymentRepo.java
Other components
- Shopper
- PayPal
Connections 24
- Shopper → React frontend: uses
- React frontend → API gateway: sends requests
- API gateway → User API: routes to
- API gateway → Product catalog: routes to
- API gateway → Review API: routes to
- API gateway → Cart API: routes to
- API gateway → Order API: routes to
- API gateway → Payment API: routes to
- User API → Authentication: authenticates
- User API → User profiles: manages profiles
UserMicroservice/src/main/java/com/micromart/UserMicroservice/controllers/UserController.java - Product catalog → Product operations: delegates to
ProductMicroservice/ProductMicroservice/src/main/java/com/micromart/ProductMicroservice/Controllers/ProductController.java - Product catalog → Categories: manages categories
- Review API → Review operations: calls
ReviewMicroservice/src/main/java/com/micromart/ReviewMicroservice/Controllers/ReviewController.java - Review operations → Review records: reads and writes
ReviewMicroservice/src/main/java/com/micromart/ReviewMicroservice/ReviewService/ReviewServiceImpl.java - Cart API → Cart operations: calls
CartMicroservice/src/main/java/com/micromart/CartMicroservice/Controllers/TestController.java - Cart API → User profiles: validates user
CartMicroservice/src/main/java/com/micromart/CartMicroservice/Controllers/TestController.java - Cart API → Product catalog: checks product
CartMicroservice/src/main/java/com/micromart/CartMicroservice/Controllers/TestController.java - Cart operations → Cart contents: returns cart
CartMicroservice/src/main/java/com/micromart/CartMicroservice/CartService/TestCartService.java - Order API → Order operations: calls
OrderMicroservice/src/main/java/com/micromart/OrderMicroservice/controllers/OrderController.java - Order operations → Order records: persists orders
- Payment API → PayPal service: creates or executes payment
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/controllers/PaymentController.java - Payment API → Transaction operations: records transactions
PaymentMicroservice/src/main/java/com/micromart/PaymentMicroservice/controllers/PaymentController.java - Transaction operations → Payment records: persists transactions
- PayPal service → PayPal: calls