How urrana1512/maruti-denim-erp works
Maruti Denim Gate Pass is an operations ERP for managing outgoing gate passes, recording material returns/inward receipts, maintaining item and vendor masters, and providing administration, dashboards, and reports. Staff enter and manage transactions through the routed client; its API client communicates with the Express API, which dispatches requests to domain controllers and persistence. The graph preserves those domain branches and reporting/export capabilities. Several client pages and backend subsystems are unsampled, so their internal calls are omitted; dashed links mark only unverified client-to-API usage.
Main entry points: App.jsx Client routes · api.js HTTP client · app.js Express API · masterDataController.js Master-data handling
Components 25
Staff application
- Client routes
client/src/App.jsx - Gate-pass screens
client/src/pages/GatePass/ManageGatePass.jsx - Inward screens
client/src/pages/MaterialInward/MaterialInward.jsx - Dashboard
client/src/pages/Dashboard/DashboardPage.jsx - Reports
client/src/pages/Reports/Reports.jsx - Master screens
client/src/pages/MasterData/ItemMasterPage.jsx - HTTP client
client/src/services/api.js
Gate-pass operations
- Gate-pass API
server/routes/gatePassRoutes.js - Gate-pass handling
server/controllers/gatePassController.js - Gate-pass rules
server/services/gatePassService.js - Inward API
server/routes/materialInwardRoutes.js - Inward handling
server/controllers/materialInwardController.js - Inward rules
server/services/materialInwardService.js
Masters and reporting
- Master-data API
server/routes/masterDataRoutes.js - Master-data handling
server/controllers/masterDataController.js - Dashboard analytics
server/services/dashboardService.js - Report generation
server/services/reportService.js - Excel export
server/services/excelService.js - PDF documents
server/services/pdfService.js
API and authorization
- Authentication
server/middleware/authMiddleware.js - Express API
server/app.js
Operational data
- Gate-pass records
server/models/GatePass.js - Inward records
server/models/MaterialInward.js - Item and vendor masters
server/models/ItemMaster.js
Other components
- Staff
Connections 31
- Staff → Client routes: uses
client/src/App.jsx - Client routes → Gate-pass screens: routes to
client/src/App.jsx - Client routes → Inward screens: routes to
client/src/App.jsx - Client routes → Dashboard: routes to
client/src/App.jsx - Client routes → Master screens: routes to
client/src/App.jsx - Client routes → Reports: routes to
client/src/App.jsx - Gate-pass screens → HTTP client: requests data
- Inward screens → HTTP client: requests data
- Dashboard → HTTP client: requests data
- Reports → HTTP client: requests data
- Master screens → HTTP client: requests data
- HTTP client → Express API: sends requests
- Express API → Gate-pass API: mounts
server/app.js - Express API → Inward API: mounts
server/app.js - Express API → Master-data API: mounts
server/app.js - Gate-pass API → Gate-pass handling: dispatches
server/routes/gatePassRoutes.js - Inward API → Inward handling: dispatches
server/routes/materialInwardRoutes.js - Master-data API → Master-data handling: dispatches
server/routes/masterDataRoutes.js - Gate-pass handling → Gate-pass rules: delegates to
server/controllers/gatePassController.js - Gate-pass handling → Gate-pass records: reads and updates
- Inward handling → Inward rules: delegates to
server/services/materialInwardService.js - Inward rules → Gate-pass records: reads
server/services/materialInwardService.js - Inward rules → Inward records: reads and writes
server/services/materialInwardService.js - Master-data handling → Item and vendor masters: reads and writes
server/controllers/masterDataController.js - Master-data handling → Inward records: checks usage
server/controllers/masterDataController.js - Master-data handling → Gate-pass records: checks usage
server/controllers/masterDataController.js - Gate-pass API → Authentication: authenticates
server/routes/gatePassRoutes.js - Inward API → Authentication: authenticates
server/routes/materialInwardRoutes.js - Master-data API → Authentication: optional auth
server/routes/masterDataRoutes.js - Express API → Dashboard analytics: serves analytics
- Report generation → Excel export: generates workbook
server/controllers/reportController.js