Skip to content
Projets

idurar/idurar-erp-crm

Voir sur GitHub

À propos

Logiciel ERP/CRM gratuit et open source pour la comptabilité et la facturation | Node.js React

Gestion et finance

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+4
in 7 days
+14
in 15 days
+21
in 1 month
+45

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

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.
Open Source ERP CRM

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

1.Clone the repository

2.Create Your MongoDB Account and Database Cluster

3.Edit the Environment File

4.Update MongoDB URI

5.Install Backend Dependencies

6.Run Setup Script

7.Run the Backend Server

8.Install Frontend Dependencies

9.Run the Frontend Server

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.json version 4.1.0, HEAD e935dec1). 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 in frontend/src.
  • Environment variables are written in UPPER_SNAKE_CASE; setting keys stored in MongoDB are written in lower_snake_case.
  • Entity means the lowercase URL token derived from a model filename (Client.ts → /client). Model is the capitalized Mongoose model name (Client).
  • owner means the single admin account created by npm run setup. The Admin schema's role enum contains only owner.
  • 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 via npm run typecheck, npm test for 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. Run npm run dev for src/ via tsx watch, or npm run build && npm start for 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:

  1. Entity convention engine — backend/src/models/utils/index.ts scans src/models/appModels/*.ts and 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.
  2. CRUD controller factory — backend/src/controllers/middlewaresControllers/createCRUDController/index.ts binds a Mongoose model to nine generic handlers (create, read, update, delete, list, listAll, search, filter, summary).
  3. Frontend config-driven CRUD UI — frontend/src/modules/CrudModule/CrudModule.tsx + DynamicForm render list/create/read/update/delete screens from a small config object and a fields map.

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

1.How to contribute

2.Reporting issues

3.Working on issues

4.Submitting pull requests

5.Commit Guidelines

6.Coding Guidelines

7.Questions

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.

Explorer des projets similaires

Chargement…