How anupdudhe/edublitz-b2b-medical-erp works
EduBlitz is a medical B2B ERP for hospitals, distributors, and administrators. Users authenticate and enter role-based dashboards to browse products, manage inventory, and place or track orders. The backend separates identity and organizations, catalog and stock, and order lifecycle/billing across three services backed by MongoDB. The README establishes the service topology and major capabilities; sampled source confirms selected controller-to-service and service-to-storage/client calls. Other unsampled UI and service links are omitted rather than inferred.
Main entry points: App.tsx Web Routes · ProductService.java Catalog and Stock Logic · OrderService.java Order and Billing Logic · ProductController.java Catalog and Stock API
Components 21
Role-Based Web App
- Web Routes
frontend/src/App.tsx - Sign-in and Registration
frontend/src/pages/auth - Role Dashboards
frontend/src/pages - Product and Inventory UI
frontend/src/pages/ProductsPage.tsx - Orders and Detail UI
frontend/src/pages/OrderDetailPage.tsx
Identity and Organizations
- Auth and User APIs
user-service/src/main/java/com/edublitz/userservice/controller/AuthController.java - Authentication
user-service/src/main/java/com/edublitz/userservice/service/AuthService.java - Organization Management
user-service/src/main/java/com/edublitz/userservice/controller/OrganizationController.java - User Administration
user-service/src/main/java/com/edublitz/userservice/controller/UserController.java - Audit Trail
user-service/src/main/java/com/edublitz/userservice/service/AuditService.java
Catalog and Inventory
- Catalog and Stock API
product-service/src/main/java/com/edublitz/productservice/controller/ProductController.java - Catalog and Stock Logic
product-service/src/main/java/com/edublitz/productservice/service/ProductService.java - Product Records
product-service/src/main/java/com/edublitz/productservice/repository/ProductRepository.java - Inventory Records
product-service/src/main/java/com/edublitz/productservice/repository/InventoryRepository.java
Orders and Billing
- Order Lifecycle API
order-service/src/main/java/com/edublitz/orderservice/controller/OrderController.java - Order and Billing Logic
order-service/src/main/java/com/edublitz/orderservice/service/OrderService.java - Product Service Client
order-service/src/main/java/com/edublitz/orderservice/client/ProductServiceClient.java - Order Records
order-service/src/main/java/com/edublitz/orderservice/repository/OrderRepository.java
Shared Data Platform
- MongoDB Atlas
- AWS ALB Ingress
Other components
- Hospital, Distributor, Admin
Connections 24
- Hospital, Distributor, Admin → Web Routes: use
- Web Routes → Sign-in and Registration: routes to
frontend/src/App.tsx - Web Routes → Role Dashboards: routes to
frontend/src/App.tsx - Web Routes → Product and Inventory UI: routes to
frontend/src/App.tsx - Web Routes → Orders and Detail UI: routes to
frontend/src/App.tsx - Web Routes → AWS ALB Ingress: served via
- AWS ALB Ingress → Auth and User APIs: routes to
- AWS ALB Ingress → Catalog and Stock API: routes to
- AWS ALB Ingress → Order Lifecycle API: routes to
- Auth and User APIs → Authentication: delegates to
user-service/src/main/java/com/edublitz/userservice/service/AuthService.java - Authentication → MongoDB Atlas: reads and writes
- User Administration → Audit Trail: logs actions
user-service/src/main/java/com/edublitz/userservice/controller/UserController.java - Audit Trail → MongoDB Atlas: writes audit records
- Organization Management → MongoDB Atlas: manages organizations
- Catalog and Stock API → Catalog and Stock Logic: delegates to
product-service/src/main/java/com/edublitz/productservice/controller/ProductController.java - Catalog and Stock Logic → Product Records: reads and writes
product-service/src/main/java/com/edublitz/productservice/service/ProductService.java - Catalog and Stock Logic → Inventory Records: reads and writes
product-service/src/main/java/com/edublitz/productservice/service/ProductService.java - Product Records → MongoDB Atlas: persists catalog
- Inventory Records → MongoDB Atlas: persists stock
- Order Lifecycle API → Order and Billing Logic: delegates to
order-service/src/main/java/com/edublitz/orderservice/controller/OrderController.java - Order and Billing Logic → Product Service Client: checks and reserves
order-service/src/main/java/com/edublitz/orderservice/service/OrderService.java - Product Service Client → Catalog and Stock API: calls internally
product-service/src/main/java/com/edublitz/productservice/controller/ProductController.java - Order and Billing Logic → Order Records: reads and writes
order-service/src/main/java/com/edublitz/orderservice/service/OrderService.java - Order Records → MongoDB Atlas: persists orders