How gaudzispriyanshu/rmc-erp works
RMC ERP supports ready-mix concrete operations from order capture and mix recipes through production inventory consumption, dispatch, delivery, and quality control, with fleet and administration capabilities. Users work through a React application; the Express API routes requests to domain handlers and PostgreSQL-backed services. The graph combines README capability descriptions with shown calls and indexed references; several domain implementations and route-to-controller links were not excerpted, so those connections are omitted rather than inferred.
Main entry points: server.ts Express API · App.tsx Application routing · workflowService.ts Workflow engine · db.ts PostgreSQL
Components 20
User application
- Application routing
frontend/src/App.tsx - Authentication state
frontend/src/context/AuthContext.tsx - Order management
frontend/src/pages/operations/orders/Orders.tsx - Order capture
frontend/src/pages/operations/orders/CreateOrder.tsx - Operations dashboard
frontend/src/pages/operations/dashboard/Dashboard.tsx - Dispatch board
frontend/src/pages/operations/dispatch/Dispatch.tsx - Trip tracking
frontend/src/pages/operations/trips/Trips.tsx - Operational masters
frontend/src/pages/masters - Quality testing
frontend/src/pages/quality/Quality.tsx - Workflow and roles
frontend/src/pages/system/administartion
Backend API
- Express API
backend/src/server.ts
Operations services
- Identity service
backend/src/services/authService.ts - Order service
backend/src/services/orderService.ts - Workflow engine
backend/src/services/workflowService.ts - Trip service
backend/src/services/tripService.ts - Inventory management
backend/src/services/inventoryService.ts - Quality control
backend/src/services/qcService.ts - Master data and challans
backend/src/services
Persistence
- PostgreSQL
backend/src/config/db.ts
Other components
- Operator
Connections 21
- Operator → Application routing: uses
frontend/src/App.tsx - Application routing → Authentication state: provides auth
frontend/src/App.tsx - Application routing → Order management: routes to
frontend/src/App.tsx - Application routing → Order capture: routes to
frontend/src/App.tsx - Application routing → Operations dashboard: routes to
frontend/src/App.tsx - Application routing → Trip tracking: routes to
frontend/src/App.tsx - Order management → Express API: requests orders
frontend/src/pages/operations/orders/Orders.tsx - Authentication state → Express API: authenticates via
frontend/src/context/AuthContext.tsx - Express API → Identity service: routes auth
- Express API → Order service: serves orders
- Express API → Trip service: serves trips
- Express API → Inventory management: serves inventory
- Express API → Quality control: serves quality
- Express API → Workflow engine: serves workflows
- Express API → Master data and challans: serves other domains
- Order service → Workflow engine: checks transitions
backend/src/services/orderService.ts - Trip service → Workflow engine: checks transitions
backend/src/services/tripService.ts - Identity service → PostgreSQL: queries
backend/src/services/authService.ts - Order service → PostgreSQL: queries
backend/src/services/orderService.ts - Trip service → PostgreSQL: queries
backend/src/services/tripService.ts - Workflow engine → PostgreSQL: queries
backend/src/services/workflowService.ts