How tangahubservice/excledge works
Excledge ERP is a multi-tenant inventory and retail operations system. Users enter through the React application, which calls the Express API; the API supports organization and branch-scoped access, product and stock management, point-of-sale sales, fiscalization, and reporting. Subscription and administration capabilities are represented from the repository tree and README, but their internal call paths were not sampled. The graph emphasizes evidenced routes and calls; other links are documented at a high level, and unsampled subsystem wiring is omitted.
Main entry points: sales.controller.ts Sales operations · sales.routes.ts Sales routes · report.routes.ts Report routes · App.tsx Application routes
Components 21
Web client
- Application routes
Frontend/src/App.tsx - API client
Frontend/src/lib/api-client.ts
API and access
- Express API
Backend/src/index.ts - Sales routes
Backend/src/routes/sales.routes.ts - Report routes
Backend/src/routes/report.routes.ts - Branch access
Backend/src/middleware/branchAuth.middleware.ts - Authentication
Backend/src/middleware/auth.middleware.ts
Inventory and sales
- Product inventory
Backend/src/controllers/inventory.controller.ts - Inventory ledger
Backend/src/services/inventory-ledger.service.ts - Sales operations
Backend/src/controllers/sales.controller.ts - Sale commit
Backend/src/services/sale-commit.service.ts
Fiscal and reports
- RRA EBM
Backend/src/services/rra-ebm.service.ts - Fiscal outbox
Backend/src/services/ebm-outbox.service.ts - Business reports
Backend/src/controllers/report.controller.ts - Profit analysis
Backend/src/services/profit.service.ts
Organization platform
- Organization management
Backend/src/controllers/organization.controller.ts - Subscriptions
Backend/src/services/subscription.service.ts - Payment providers
Backend/src/services/payment.service.ts - Prisma data access
Backend/src/lib/prisma.ts - PostgreSQL
Other components
- ERP user
Connections 19
- ERP user → Application routes: uses
README.md - Application routes → API client: requests data
- API client → Express API: calls API
README.md - Express API → Sales routes: serves routes
Backend/src/index.ts - Sales routes → Sales operations: routes requests
Backend/src/routes/sales.routes.ts - Report routes → Business reports: routes requests
Backend/src/routes/report.routes.ts - Sales routes → Authentication: authenticates
Backend/src/routes/sales.routes.ts - Sales routes → Branch access: checks branch
Backend/src/routes/sales.routes.ts - Report routes → Authentication: authenticates
Backend/src/routes/report.routes.ts - Report routes → Branch access: checks branch
Backend/src/routes/report.routes.ts - Sales operations → Sale commit: commits sale
Backend/src/controllers/sales.controller.ts - Sales operations → Inventory ledger: restores stock
Backend/src/controllers/sales.controller.ts - Product inventory → Inventory ledger: records movements
Backend/src/controllers/inventory.controller.ts - Business reports → Profit analysis: gets profit report
Backend/src/controllers/report.controller.ts - Prisma data access → PostgreSQL: persists data
README.md - Organization management → Prisma data access: uses database
- Subscriptions → Payment providers: handles billing
- Sales operations → RRA EBM: fiscalizes sale
Backend/src/controllers/sales.controller.ts - Sales operations → Fiscal outbox: queues fiscal work
Backend/src/controllers/sales.controller.ts