How hariomtechentrance/crm-tool works
BusinessOS is a multi-tenant CRM/ERP: organization members use a React app to manage business records and workflows, while public portals support selected customer-facing tasks. The documented request path is browser to Express API to Prisma/PostgreSQL; sampled routes show authentication, organization scoping, and module gating before controllers. The README identifies broad product areas not all represented in the sampled source, so those are grouped at their supported module directories rather than expanded into speculative controller-level flows.
Main entry points: routes API routes · prisma.ts Prisma access · App.tsx React app · api.ts API client
Components 19
App entry
- React app
frontend/src/App.tsx - API client
frontend/src/lib/api.ts - Express API
backend/src/server.ts - API routes
backend/src/routes
Platform access
- Auth and org scope
backend/src/middleware - Organizations
backend/src/controllers/org.controller.ts - Prisma access
backend/src/lib/prisma.ts - PostgreSQL
Core operations
- Sales and finance
backend/src/controllers - Inventory and purchasing
backend/src/controllers - HR and payroll
backend/src/controllers/hr.controller.ts - Projects and work
backend/src/controllers - Documents and reports
backend/src/controllers
Customer workflows
- CRM and leads
backend/src/controllers - Email and activities
backend/src/controllers - Support and services
backend/src/controllers
Industry modules
- Industry modules
backend/src/controllers - Public portals
frontend/src/pages/public
Other components
- Org member
Connections 20
- Org member → React app: uses
- React app → API client: requests data
- API client → Express API: calls API
- Express API → API routes: mounts routes
- API routes → Auth and org scope: guards requests
- API routes → Organizations: dispatches
- API routes → CRM and leads: dispatches
- API routes → Sales and finance: dispatches
- API routes → Inventory and purchasing: dispatches
- API routes → HR and payroll: dispatches
- API routes → Projects and work: dispatches
- API routes → Documents and reports: dispatches
- API routes → Email and activities: dispatches
- API routes → Support and services: dispatches
- API routes → Industry modules: dispatches
- Organizations → Prisma access: queries
- HR and payroll → Prisma access: queries
- Industry modules → Prisma access: queries
- Prisma access → PostgreSQL: reads and writes
- React app → Public portals: routes to