How jajulanagamani/microservices_based_order_processing_system works
OrderFlow is a React order-management dashboard backed by four Spring REST services with separate MySQL databases. Users browse workspace metrics and manage customers, products, orders, and notifications. Order creation is the key cross-service workflow: the order service checks customer and product data, reduces stock, saves the order, and requests a confirmation notification. The graph preserves the documented CRUD and stock-adjustment capabilities; some backend resource-to-service wiring is unsampled, so those links are marked unverified.
Main entry points: App.jsx Workspace Shell · api.js API Clients · OrderService.java Order Orchestration · Ui.jsx Shared UI
Components 24
Dashboard
- Workspace Shell
frontend/src/App.jsx - Workspace Data
frontend/src/hooks/useWorkspaceData.js - API Clients
frontend/src/services/api.js - Dashboard Metrics
frontend/src/components/Dashboard.jsx - Dashboard Charts
frontend/src/components/DashboardCharts.jsx - Customer View
frontend/src/components/Customers.jsx - Product View
frontend/src/components/Products.jsx - Order View
frontend/src/components/Orders.jsx - Notification View
frontend/src/components/Notifications.jsx - Sidebar Navigation
frontend/src/components/Sidebar.jsx - Shared UI
frontend/src/components/Ui.jsx
Customer Service
- Customer REST API
microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerResource.java - Customer CRUD
microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java - Customer Data
microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerRepository.java
Product Service
- Product REST API
microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductResource.java - Product CRUD And Stock
microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java - Product Data
microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductRepository.java
Order Processing
- Order REST API
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderResource.java - Order Orchestration
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java - Order Data
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderRepository.java
Notification Service
- Notification REST API
microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationResource.java - Notification CRUD
microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java - Notification Data
microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationRepository.java
Other components
- Workspace User
Connections 34
- Workspace User → Workspace Shell: uses
README.md - Workspace Shell → Workspace Data: loads data
frontend/src/App.jsx - Workspace Shell → Dashboard Metrics: renders
frontend/src/App.jsx - Workspace Shell → Customer View: renders
frontend/src/App.jsx - Workspace Shell → Product View: renders
frontend/src/App.jsx - Workspace Shell → Order View: renders
frontend/src/App.jsx - Workspace Shell → Notification View: renders
frontend/src/App.jsx - Workspace Shell → Sidebar Navigation: renders
frontend/src/App.jsx - Dashboard Metrics → Dashboard Charts: renders
frontend/src/components/Dashboard.jsx - Workspace Data → API Clients: fetches lists
frontend/src/hooks/useWorkspaceData.js - API Clients → Customer REST API: HTTP requests
README.md - API Clients → Product REST API: HTTP requests
README.md - API Clients → Order REST API: HTTP requests
README.md - API Clients → Notification REST API: HTTP requests
README.md - Customer View → API Clients: CRUD requests
frontend/src/components/Customers.jsx - Product View → API Clients: CRUD requests
frontend/src/components/Products.jsx - Order View → API Clients: CRUD requests
frontend/src/components/Orders.jsx - Customer View → Shared UI: uses controls
frontend/src/components/Customers.jsx - Product View → Shared UI: uses controls
frontend/src/components/Products.jsx - Order View → Shared UI: uses controls
frontend/src/components/Orders.jsx - Dashboard Metrics → Shared UI: uses controls
frontend/src/components/Dashboard.jsx - Notification View → Shared UI: uses controls
frontend/src/components/Notifications.jsx - Customer REST API → Customer CRUD: delegates
- Customer CRUD → Customer Data: reads and writes
microservices-order-system/customer-service/src/main/java/com/orderprocessing/customer_service/customer/CustomerService.java - Product REST API → Product CRUD And Stock: delegates
- Product CRUD And Stock → Product Data: reads and writes
microservices-order-system/product-service/src/main/java/com/orderprocessing/product_service/product/ProductService.java - Order REST API → Order Orchestration: delegates
- Order Orchestration → Order Data: reads and writes
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java - Notification REST API → Notification CRUD: delegates
- Notification CRUD → Notification Data: reads and writes
microservices-order-system/notification-service/src/main/java/com/orderprocessing/notification_service/notification/NotificationService.java - Order Orchestration → Customer REST API: checks customer
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java - Order Orchestration → Product REST API: checks stock
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java - Order Orchestration → Product REST API: adjusts stock
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java - Order Orchestration → Notification REST API: creates notice
microservices-order-system/order-service/src/main/java/com/orderprocessing/order_service/order/OrderService.java