How tejaswininayini/orderflow-microservices works
OrderFlow is a React dashboard backed by an order-management service and supporting Spring Boot services. The visible workflow is dashboard order retrieval, order persistence, and event publication; Kafka listeners handle order-status results and customer notifications. The tree also includes payment and inventory consumers, but their listener behavior is not shown in the supplied excerpts, so their event links are omitted. Dashboard authentication, profile, and settings modules are included as capabilities, though their wiring to the main view is not established by the shown evidence.
Main entry points: OrderRepository.java Order repository · OrderController.java Order API · App.jsx Order dashboard · OrderStatusListener.java Payment and inventory results
Components 15
Dashboard
- Order dashboard
dashboard/src/App.jsx - Authentication context
dashboard/src/AuthContext.jsx - Login view
dashboard/src/Login.jsx - Profile view
dashboard/src/Profile.jsx - Settings view
dashboard/src/Setting.jsx
Order management
- Order API
order-service/src/main/java/com/orderpipeline/order/OrderController.java - Order record
order-service/src/main/java/com/orderpipeline/order/Order.java - Order repository
order-service/src/main/java/com/orderpipeline/order/OrderRepository.java - Orders database
order-service/src/main/java/com/orderpipeline/order/OrderRepository.java
Event consumers
- Payment and inventory results
order-service/src/main/java/com/orderpipeline/order/OrderStatusListener.java - Customer notifications
notification-service/src/main/java/com/orderpipeline/notification/NotificationListener.java
Supporting services
- Payment consumer
payment-service/src/main/java/com/orderpipeline/payment/PaymentListener.java - Inventory consumer
inventory-service/src/main/java/com/orderpipeline/inventory/InventoryListener.java
Other components
- Dashboard user
- Kafka broker
Connections 9
- Dashboard user → Order dashboard: uses
- Order dashboard → Order API: fetches orders
dashboard/src/App.jsx - Order API → Order repository: saves and queries
order-service/src/main/java/com/orderpipeline/order/OrderController.java - Order repository → Order record: persists
order-service/src/main/java/com/orderpipeline/order/OrderRepository.java - Order repository → Orders database: reads and writes
order-service/src/main/java/com/orderpipeline/order/OrderRepository.java - Order API → Kafka broker: publishes events
order-service/src/main/java/com/orderpipeline/order/OrderController.java - Kafka broker → Payment and inventory results: delivers results
order-service/src/main/java/com/orderpipeline/order/OrderStatusListener.java - Payment and inventory results → Order repository: updates status
order-service/src/main/java/com/orderpipeline/order/OrderStatusListener.java - Kafka broker → Customer notifications: delivers events
notification-service/src/main/java/com/orderpipeline/notification/NotificationListener.java