How jaiswaladi246/7-microservice-project works
This is a local polyglot commerce application: a React interface drives authentication, catalog browsing, inventory management, order checkout, payment/refund, notifications, and analytics across seven independently database-owning services. The main workflow is cart-to-order: Orders fetches authoritative catalog prices, reserves inventory, persists the order, and sends a notification; Payments validates the order and updates its status. Analytics aggregates service APIs and can persist snapshots. Service interactions beyond sampled excerpts are included only where the README documents them.
Main entry points: api.js API client · main.py Order lifecycle · router.php Analytics summaries · Program.cs Payments
Components 17
Web interface
- React UI
frontend/src/App.jsx - API client
frontend/src/api.js
Commerce services
- Authentication
services/auth-service/src/main/java/com/devopsshack/auth/AuthController.java - Product catalog
services/catalog-service/main.go - Inventory control
services/inventory-service/src/index.js - Order lifecycle
services/order-service/app/main.py - Payments
services/payment-service/Program.cs
Notifications and analytics
- Notification inbox
services/notification-service/app.rb - Analytics summaries
services/analytics-service/router.php
Service-owned databases
- Auth database
database/bootstrap.sql - Catalog database
database/bootstrap.sql - Inventory database
database/bootstrap.sql - Order database
database/bootstrap.sql - Payment database
database/bootstrap.sql - Notification database
database/bootstrap.sql - Analytics database
database/bootstrap.sql
Other components
- Shopper
Connections 25
- Shopper → React UI: uses
README.md - React UI → API client: requests through
frontend/src/App.jsx - API client → Authentication: routes requests
README.md - API client → Product catalog: routes requests
README.md - API client → Inventory control: routes requests
README.md - API client → Order lifecycle: routes requests
README.md - API client → Payments: routes requests
README.md - API client → Notification inbox: routes requests
README.md - API client → Analytics summaries: routes requests
README.md - Order lifecycle → Product catalog: fetches prices
services/order-service/app/main.py - Order lifecycle → Inventory control: reserves stock
services/order-service/app/main.py - Order lifecycle → Notification inbox: sends order notice
services/order-service/app/main.py - Payments → Order lifecycle: checks and updates
services/payment-service/Program.cs - Payments → Notification inbox: sends payment notice
README.md - Analytics summaries → Product catalog: reads products
services/analytics-service/router.php - Analytics summaries → Inventory control: reads stock
services/analytics-service/router.php - Analytics summaries → Order lifecycle: reads orders
services/analytics-service/router.php - Analytics summaries → Payments: reads payments
services/analytics-service/router.php - Authentication → Auth database: reads and writes
services/auth-service/src/main/java/com/devopsshack/auth/AuthController.java - Product catalog → Catalog database: reads and writes
services/catalog-service/main.go - Inventory control → Inventory database: reads and writes
README.md - Order lifecycle → Order database: reads and writes
services/order-service/app/main.py - Payments → Payment database: reads and writes
README.md - Notification inbox → Notification database: reads and writes
services/notification-service/app.rb - Analytics summaries → Analytics database: saves snapshots
services/analytics-service/router.php