idurar/idurar-erp-crm
حول
برنامج ERP وCRM مجاني ومفتوح المصدر للمحاسبة وإصدار الفواتير، باستخدام Node.Js وReact
الأعمال والماليةالنمو المقاس للنجوم
- خلال 24 ساعة
- +٥
- خلال 7 أيام
- +١٤
- خلال 15 يومًا
- +٢١
- خلال شهر
- +٤٥
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلOpen Source ERP / CRM Accounting Invoice Quote
IDURAR ERP CRM V.5
Give a Star ⭐️ & Fork to this project ... Happy coding! 🤩`
IDURAR is Open Source ERP / CRM (Invoice / Quote / Accounting ) Based on Advanced Mern Stack (Node.js / Express.js / MongoDb / React.js ) with Ant Design (AntD) and Redux
🚀 Self-hosted Entreprise Version : https://cloud.idurarapp.com
Features :
Invoice Management
Payment Management
Quote Management
Customer Management
Ant Design Framework(AntD) 🐜
Based on Mern Stack (Node.js / Express.js / MongoDb / React.js ) 👨💻
May i can use IDURAR for Commercial use :
- Yes You can use IDURAR for free for personal or Commercial use.
Free Open Source ERP / CRM App
IDURAR is Open "Fair-Code" Source ERP / CRM (Invoice / Inventory / Accounting / HR) Based on Mern Stack (Node.js / Express.js / MongoDb / React.js ) with Ant Design (AntD) and Redux
Getting started
2.Create Your MongoDB Account and Database Cluster
5.Install Backend Dependencies
8.Install Frontend Dependencies
Documentation
Advanced, implementation-level documentation for developers who need to extend, customize, and operate this repository. It covers both backend (Express/Mongoose) and frontend (React/Vite/Redux), and it is written for the deployment shape this code actually implements: one admin (the business owner), one company, one database — no tenants, no staff roles, no branch hierarchy in the access-control layer.
Scope note: statements describing the code describe this repository snapshot (
package.jsonversion4.1.0, HEADe935dec1). Statements labelled Recommendation are hardening or enhancement advice, not current behaviour. Check 12-troubleshooting-and-known-gaps.md before assuming a feature is wired up.
Start here
| If you want to… | Read |
|---|---|
| First-time setup (DATABASE env, wizard, CLI, reset) | 00-first-time-setup.md |
| Understand the whole system in 20 minutes | 01-architecture.md |
| Change or add backend behaviour | 02-backend-development.md |
| Know the exact HTTP API | 03-backend-api-reference.md |
| Change or add frontend behaviour | 04-frontend-development.md |
| Build a CRUD screen or form quickly | 05-frontend-component-playbook.md |
| Understand schemas, settings, numbering, money/date | 06-data-model-and-settings.md |
| Reason about login, tokens, and hardening | 07-authentication-and-security.md |
| Add a new entity end-to-end | 08-extend-entity-playbook.md |
| Rebrand / change PDF / change language / change workflow | 09-customization-playbook.md |
| Run the business as the solo owner | 10-solo-owner-operations.md |
| Deploy, configure environments, back up, upgrade | 11-deployment-operations.md |
| Debug a broken build or suspicious behaviour | 12-troubleshooting-and-known-gaps.md |
Documentation conventions
- Paths are relative to the repository root unless stated otherwise. Backend code lives in
backend/src; frontend code lives infrontend/src. - Environment variables are written in
UPPER_SNAKE_CASE; setting keys stored in MongoDB are written inlower_snake_case. - Entity means the lowercase URL token derived from a model filename (
Client.ts→/client). Model is the capitalized Mongoose model name (Client). ownermeans the single admin account created bynpm run setup. TheAdminschema'sroleenum contains onlyowner.- Code samples are trimmed to the relevant lines; read the linked file for full context.
- Mermaid diagrams render in most Markdown viewers. If yours does not, the adjacent tables carry the same information.
The shape of the application
flowchart LR
owner[Single Owner / Browser] --> ui[React SPA :3000]
ui -->|Bearer token + JSON| api[Express API :8888]
api --> mongo[(MongoDB)]
api --> files[(Local uploads / PDFs)]
api --> smtp[Resend / email - optional]
api --> ai[OpenAI - optional]
- Frontend: React 19 + ReactDOM 19, Vite 8, Ant Design 6, Redux Toolkit +
combineReducers, React Router 6, TypeScript 5 (strict typecheck vianpm run typecheck,npm testfor characterization tests). - Backend: TypeScript on Node 20 (strict typecheck, CommonJS build to
dist/), Express 5, Mongoose 8, Joi validation, JWT + bcryptjs, multer/express-fileupload, Pug +html-pdf. Runnpm run devforsrc/viatsx watch, ornpm run build && npm startfor the compiled app. - Persistence: MongoDB is the source of truth for business documents and settings. The frontend mirrors settings and auth state in
localStorage.
Reading the code: the three "engines"
Most customization work is a change to one of three convention-driven engines rather than to dozens of files:
- Entity convention engine —
backend/src/models/utils/index.tsscanssrc/models/appModels/*.tsand derives entity names, model names, controller names, and the full REST route set. Adding a model file automatically creates CRUD routes unless a custom controller overrides them. - CRUD controller factory —
backend/src/controllers/middlewaresControllers/createCRUDController/index.tsbinds a Mongoose model to nine generic handlers (create,read,update,delete,list,listAll,search,filter,summary). - Frontend config-driven CRUD UI —
frontend/src/modules/CrudModule/CrudModule.tsx+DynamicFormrender list/create/read/update/delete screens from a smallconfigobject and afieldsmap.
Learn these three files first; they are the highest-leverage files in the repository.
Single-admin design: what it means in practice
| Concern | Current behaviour | Consequence for customization |
|---|---|---|
| Identity | Admin with role: 'owner' only (backend/src/models/coreModels/Admin.ts) |
No role checks to configure; if you need staff, add a role field and authorization middleware deliberately. |
| Tenancy | No companyId/tenantId on business documents |
Do not advertise multi-tenancy; one database == one business. |
| Ownership | createdBy on Client, Invoice, Payment points at the owner |
Used for audit/attribution, not for row-level access control. |
| Branches | idurar_app_has_mutli_branch setting exists in defaults |
It is a setting only; navigation/ACL does not implement branch isolation. |
| Sharing | Bearer token per login, tracked in AdminPassword.loggedSessions |
Logout invalidates the token; sharing the account means sharing full access. |
See 07-authentication-and-security.md and 10-solo-owner-operations.md.
Maintenance rule for these docs
When you change a convention, update the matching doc in the same commit:
| Code you change | Doc to update |
|---|---|
models/utils/index.ts, model filenames, route patterns |
01, 02, 03, 08 |
createCRUDController/*, response envelope, status codes |
02, 03 |
router/routes.tsx, CrudModule, DynamicForm, Redux slices |
04, 05, 08 |
| Mongoose schemas, default settings JSON | 06 |
| Auth/session/token handling | 07 |
| Setup/reset/env/deploy scripts | 10, 11, 12 |
Quick verification checklist after any change
# from repository root
cd backend && npm run dev # API on :8888
cd frontend && npm run dev # SPA on :3000
# browser: http://localhost:3000, default setup login [email protected] / admin123
Then confirm: login works, list pages load, create/edit/delete works, PDF download works (/download/invoice/<file>), settings persist after reload, and no console/network errors. See 12-troubleshooting-and-known-gaps.md for the known broken spots in this snapshot.
Contributing
Show your support
Dont forget to give a ⭐️ to this project ... Happy coding!
🚀 Self-hosted Entreprise Version : https://cloud.idurarapp.com
License
IDURAR is Free Open Source Released under the GNU Affero General Public License v3.0.
Maintainers
See MAINTAINERS.md for maintainer contact info, and llms.txt for a structured profile summary for AI agents.
The main maintainer of this project is open to new opportunities — check out my GitHub profile.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…