How aragondadinesh/7-microservice-project works
This is a local polyglot commerce application: a React UI supports login, catalog browsing, stock management, checkout, payment, notifications, and analytics across seven independently owned services. The main checkout path is UI → Orders, which validates catalog prices, reserves inventory, persists the order, and requests a notification; payment separately updates order status and can trigger refunds. The graph preserves documented capabilities and database ownership. Some service internals and UI calls are unsampled, so those relationships rely on README evidence rather than inspected implementations.
Main entry points: App.jsx Commerce UI · bootstrap.sql PostgreSQL databases · main.py Order service · router.php Analytics service
Components 12
Web application
- Commerce UI
frontend/src/App.jsx - HTTP client
frontend/src/api.js
Commerce services
- Catalog service
services/catalog-service/main.go - Inventory service
services/inventory-service/src/index.js - Order service
services/order-service/app/main.py - Payment service
services/payment-service/Program.cs
Identity and messaging
- Auth service
services/auth-service/src/main/java/com/devopsshack/auth/AuthController.java - Auth setup
services/auth-service/src/main/java/com/devopsshack/auth/AuthApplication.java - Notification service
services/notification-service/app.rb
Analytics
- Analytics service
services/analytics-service/router.php
Service data
- PostgreSQL databases
database/bootstrap.sql
Other components
- Shopper / admin
Connections 27
- Shopper / admin → Commerce UI: uses
README.md - Commerce UI → HTTP client: sends requests
frontend/src/App.jsx - Commerce UI → Auth service: authenticates
frontend/src/App.jsx - Commerce UI → Catalog service: manages products
frontend/src/App.jsx - Commerce UI → Inventory service: adjusts stock
frontend/src/App.jsx - Commerce UI → Order service: creates orders
frontend/src/App.jsx - Commerce UI → Payment service: captures / refunds
frontend/src/App.jsx - Commerce UI → Notification service: views inbox
README.md - Commerce UI → Analytics service: views summaries
README.md - Auth setup → PostgreSQL databases: initializes tables
services/auth-service/src/main/java/com/devopsshack/auth/AuthApplication.java - Auth service → PostgreSQL databases: reads / writes
services/auth-service/src/main/java/com/devopsshack/auth/AuthController.java - Catalog service → PostgreSQL databases: reads / writes
services/catalog-service/main.go - Inventory service → PostgreSQL databases: reads / writes
services/inventory-service/src/index.js - Order service → Catalog service: validates prices
services/order-service/app/main.py - Order service → Inventory service: reserves / releases
services/order-service/app/main.py - Order service → PostgreSQL databases: stores orders
services/order-service/app/main.py - Order service → Notification service: requests notice
services/order-service/app/main.py - Payment service → Order service: checks / updates status
services/payment-service/Program.cs - Payment service → Inventory service: commits / releases stock
README.md - Payment service → Notification service: requests notice
services/payment-service/Program.cs - Payment service → PostgreSQL databases: stores payments
services/payment-service/Program.cs - Notification service → PostgreSQL databases: reads / writes inbox
services/notification-service/app.rb - Analytics service → Catalog service: fetches products
services/analytics-service/router.php - Analytics service → Inventory service: fetches stock
services/analytics-service/router.php - Analytics service → Order service: fetches orders
services/analytics-service/router.php - Analytics service → Payment service: fetches payments
services/analytics-service/router.php - Analytics service → PostgreSQL databases: saves snapshots
services/analytics-service/router.php