How jishnu2745/java_21_reactjs_fullstack works
This repository is a React storefront and Java/Spring Boot microservices system. A customer signs in, browses products, submits an order, and can pay; order and payment events then drive asynchronous service work and notifications. The graph includes the documented gateway, service, database, cache, and Kafka roles, plus the frontend API/auth layer. Backend implementation excerpts were not provided, so backend relationships rely on README-described flows; other unverified connections are omitted.
Main entry points: App.jsx React application · gateway API Gateway · order Order service · axiosInstance.js HTTP clients
Components 20
Frontend experience
- React application
frontend/src/App.jsx - Auth context
frontend/src/context/AuthContext.jsx - Authentication API
frontend/src/api/auth.api.js - HTTP clients
frontend/src/api/axiosInstance.js - Order workflow
frontend/src/pages/Orders/OrdersPage.jsx - Payment modal
frontend/src/components/common/PaymentModal.jsx - Product catalog UI
frontend/src/pages/Products/ProductsPage.jsx - Aggregator UI
frontend/src/pages/Aggregator/AggregatorPage.jsx - Notifications UI
frontend/src/pages/Notifications/NotificationsPage.jsx
Ingress and identity
- API Gateway
api-gateway/src/main/java/com/demo/gateway - User service
user-service/src/main/java/com/demo/user
Commerce services
- Order service
order-service/src/main/java/com/demo/order - Product service
product-service/src/main/java/com/demo/product - Payment service
payment-service/src/main/java/com/demo/payment
Events and notifications
- Kafka event broker
- Notification service
notification-service/src/main/java/com/demo/notification
Runtime state
- Service databases
- Redis cache and locks
- AWS S3
Other components
- Customer
Connections 26
- Customer → React application: uses
README.md - React application → Auth context: provides auth
frontend/src/App.jsx - Auth context → Authentication API: requests auth
frontend/src/context/AuthContext.jsx - Authentication API → HTTP clients: uses client
frontend/src/api/auth.api.js - Order workflow → HTTP clients: uses clients
frontend/src/pages/Orders/OrdersPage.jsx - Payment modal → HTTP clients: uses client
frontend/src/components/common/PaymentModal.jsx - Aggregator UI → HTTP clients: uses client
- React application → Order workflow: routes to
frontend/src/App.jsx - React application → Product catalog UI: routes to
frontend/src/App.jsx - React application → Aggregator UI: routes to
frontend/src/App.jsx - React application → Notifications UI: routes to
frontend/src/App.jsx - HTTP clients → API Gateway: sends requests
README.md - API Gateway → User service: routes auth
README.md - API Gateway → Order service: routes orders
README.md - API Gateway → Product service: routes catalog
README.md - API Gateway → Payment service: routes payments
README.md - Order service → Product service: checks inventory
README.md - Order service → Service databases: commits order and outbox
README.md - Order service → Kafka event broker: relays order events
README.md - Kafka event broker → Notification service: delivers events
README.md - Notification service → Customer: sends alerts
README.md - Payment service → Service databases: commits payment and outbox
README.md - Payment service → Kafka event broker: relays payment events
README.md - Kafka event broker → Order service: delivers payment events
README.md - Product service → Redis cache and locks: caches and locks
README.md - Product service → AWS S3: stores images