How abhijitsen2923-hub/flexcrm works
FlexCRM is a multi-tenant CRM with real-estate and finance verticals, plus customer and channel-partner portals. The main staff workflow is authenticated use of the web app to manage leads through pipeline stages and convert sales into customer, booking, and follow-up work; the backend handles requests through services and repositories to tenant data. The README documents additional analytics, HR, integrations, and real-time updates. Sampled code confirms pipeline-stage retrieval and frontend caching; other subsystem links reflect the documented layered architecture and capabilities, not inspection of their implementations.
Main entry points: endpoints CRM endpoints · services CRM services · App.tsx App and routes · pages Staff pages
Components 22
Web application
- App and routes
frontend/src/App.tsx - Staff pages
frontend/src/pages - Portal pages
frontend/src/portals - API services
frontend/src/services - Auth context
frontend/src/context/AuthContext.tsx
CRM workflows
- CRM endpoints
backend/app/api/v1/endpoints - CRM services
backend/app/services - Data repositories
backend/app/repositories - Pipeline stages
backend/app/api/v1/endpoints/pipeline_stages.py - Pipeline repository
backend/app/repositories/pipeline_stages.py - CRM tenant data
backend/app/models
Business verticals
- Real estate
backend/app/real_estate - Finance
backend/app/finance - HR
backend/app/hr - Customer portal
backend/app/customer_portal
Backend platform
- Scheduled jobs
backend/app/jobs - Realtime updates
backend/app/services/realtime.py - Redis cache
backend/app/core/cache.py
Integrations
- Lead integrations
backend/app/services/lead_ingest.py - External services
- S3-compatible storage
backend/app/core/storage.py
Other components
- Staff user
Connections 26
- Staff user → App and routes: uses
- App and routes → Auth context: provides auth
- App and routes → Staff pages: routes to
- App and routes → Portal pages: routes to
- Staff pages → API services: requests data
- Portal pages → API services: requests data
- API services → CRM endpoints: HTTP requests
- CRM endpoints → CRM services: delegates
- CRM services → Data repositories: queries
- Data repositories → CRM tenant data: reads and writes
- Staff pages → Pipeline stages: loads stages
- Pipeline stages → Pipeline repository: lists stages
- Pipeline repository → CRM tenant data: reads stages
- CRM endpoints → Real estate: serves vertical APIs
- CRM endpoints → Finance: serves vertical APIs
- CRM endpoints → HR: serves HR APIs
- CRM endpoints → Customer portal: serves portal APIs
- CRM services → Lead integrations: ingests leads
- Lead integrations → External services: connects to
- Scheduled jobs → External services: syncs with
- CRM services → Realtime updates: publishes updates
- Realtime updates → External services: streams events
- CRM services → Redis cache: caches data
- CRM services → S3-compatible storage: stores documents
- Real estate → S3-compatible storage: stores documents
- Finance → S3-compatible storage: stores attachments