How idurar/idurar-erp-crm works
IDURAR is a self-hosted ERP/CRM for customer, invoice, payment, quote, and accounting workflows. The main user path is through the React application’s routed business pages; those pages use backend APIs for records and operations, with MongoDB as the backend’s configured datastore. Backend route mounting and frontend route declarations are visible, but the sampled evidence does not show most API-to-controller or UI-to-API calls, so those links are left unverified. README capabilities such as quotes and inventory are retained as subsystem nodes where the tree supports them.
Main entry points: app.js Express application · routes.jsx Page routing · appApi.js ERP API routes · request.js Request handling
Components 26
User application
- React application
frontend/src/apps/IdurarOs.jsx - Page routing
frontend/src/router/routes.jsx - Request handling
frontend/src/request/request.js - Dashboard
frontend/src/modules/DashboardModule/index.jsx - Settings pages
frontend/src/pages/Settings/Settings.jsx
Sales workflows
- Customer pages
frontend/src/pages/Customer/index.jsx - Invoice pages
frontend/src/pages/Invoice/index.jsx - Payment pages
frontend/src/pages/Payment/index.jsx - Quote workflow
frontend/src/modules/QuoteModule
API service
- Express application
backend/src/app.js - Authentication routes
backend/src/routes/coreRoutes/coreAuth.js - Core API routes
backend/src/routes/coreRoutes/coreApi.js - ERP API routes
backend/src/routes/appRoutes/appApi.js - Token validation
backend/src/controllers/coreControllers/adminAuth/index.js - Customer operations
backend/src/controllers/appControllers/clientController - Invoice operations
backend/src/controllers/appControllers/invoiceController - Payment operations
backend/src/controllers/appControllers/paymentController - Settings operations
backend/src/controllers/coreControllers/settingController - PDF generation
backend/src/controllers/pdfController/index.js - PDF download
backend/src/handlers/downloadHandler/downloadPdf.js - Public file serving
backend/src/routes/coreRoutes/corePublicRouter.js - Server startup
backend/src/server.js
Platform services
- File uploads
backend/src/middlewares/uploadMiddleware - MongoDB models
backend/src/models
Other components
- ERP user
- MongoDB
Connections 32
- ERP user → React application: uses
README.md - React application → Page routing: loads routes
- Page routing → Customer pages: routes to
frontend/src/router/routes.jsx - Page routing → Invoice pages: routes to
frontend/src/router/routes.jsx - Page routing → Payment pages: routes to
frontend/src/router/routes.jsx - Page routing → Quote workflow: routes to
frontend/src/router/routes.jsx - ERP user → Dashboard: views
- ERP user → Settings pages: manages settings
- Customer pages → Request handling: requests data
- Invoice pages → Request handling: requests data
- Payment pages → Request handling: requests data
- Quote workflow → Request handling: requests data
- React application → Express application: calls API
- Server startup → Express application: starts
backend/src/server.js - Express application → Authentication routes: mounts
backend/src/app.js - Express application → Core API routes: mounts
backend/src/app.js - Express application → ERP API routes: mounts
backend/src/app.js - Express application → Token validation: validates tokens
backend/src/app.js - Express application → PDF download: mounts downloads
backend/src/app.js - Express application → Public file serving: mounts files
backend/src/app.js - ERP API routes → Customer operations: dispatches to
- ERP API routes → Invoice operations: dispatches to
- ERP API routes → Payment operations: dispatches to
- Core API routes → Settings operations: dispatches to
- Invoice operations → PDF generation: creates PDFs
- PDF download → PDF generation: renders document
- Invoice operations → MongoDB models: reads and writes
- Customer operations → MongoDB models: reads and writes
- Payment operations → MongoDB models: reads and writes
- Settings operations → MongoDB models: reads and writes
- Server startup → MongoDB: connects
backend/src/server.js - File uploads → Public file serving: serves uploaded files