How sakshi07102005/li-crm works
LI CRM is a role-governed, multi-channel CRM for acquiring leads, managing sales pipelines and customer relationships, and tracking sales activity. The principal workflow is a user working in the web or mobile client, submitting lead operations to the REST API, and receiving results from its business services and PostgreSQL. The README also identifies reporting, imports, tasks, notifications, audit, and RBAC as product capabilities. Mobile implementation sources and several backend feature implementations were not sampled, so some subsystem links are left unverified.
Main entry points: lead.service.ts Lead management · lead.routes.ts Lead routes · lead.controller.ts Lead controller · app.ts Express API
Components 19
CRM clients
- Web application
web/src - Mobile application
mobile
API and access
- Express API
backend/src/app.ts - Lead routes
backend/src/routes/lead.routes.ts - Authentication and RBAC
backend/src/middleware - Data scoping
backend/src/services/scope.service.ts
Sales operations
- Lead controller
backend/src/controllers/lead.controller.ts - Lead management
backend/src/services/lead.service.ts - Lead validation
backend/src/validators/lead.validator.ts - Lead normalization
backend/src/utils/leadNormalizers.ts - PostgreSQL
backend/src/db/pool.ts - Companies and contacts
backend/src/services - Follow-ups and tasks
backend/src/services
Engagement and insights
- Activity tracking
backend/src/services/activity.service.ts - Reports and imports
backend/src/services - Audit trail
backend/src/services/audit.service.ts - Notifications and email
backend/src/services/notification.service.ts - Reminder scheduler
backend/src/jobs/followupReminders.ts
Other components
- CRM user
Connections 16
- CRM user → Web application: uses
README.md - CRM user → Mobile application: uses
README.md - Web application → Express API: submits requests
- Mobile application → Express API: submits requests
- Express API → Lead routes: mounts routes
backend/src/app.ts - Lead routes → Authentication and RBAC: applies access checks
backend/src/routes/lead.routes.ts - Lead routes → Lead controller: dispatches requests
backend/src/routes/lead.routes.ts - Lead controller → Lead management: invokes operations
backend/src/controllers/lead.controller.ts - Lead controller → Lead validation: validates input
backend/src/controllers/lead.controller.ts - Lead management → PostgreSQL: queries and writes
backend/src/services/lead.service.ts - Lead management → Lead normalization: normalizes search
backend/src/services/lead.service.ts - Lead management → Data scoping: checks data scope
backend/src/services/lead.service.ts - Lead management → Notifications and email: creates notifications
backend/src/services/lead.service.ts - Reminder scheduler → Notifications and email: sends reminders
backend/src/jobs/followupReminders.ts - Lead management → Activity tracking: records activity
backend/src/services/lead.service.ts - Lead management → Audit trail: records audit
backend/src/services/lead.service.ts