How suresh-jangid/new_saf_foundation_backend works
This is a TypeScript/Express backend for foundation operations: user and agent access, applicant and insurance records, programme benefits, E-PIN management, and financial transactions. The principal workflow is authenticated staff or customer requests through API endpoints into domain services, which read or update persistent records and return results. The tree also shows distinct benefit programmes, document handling, dashboards, and configuration. The README is empty, and source excerpts are partial; the graph therefore preserves documented-by-names capabilities but omits uncertain route wiring and integrations.
Main entry points: db.ts Prisma database · legacy-payment-entry.ts Legacy payment helper · applications Applications · schemes Scheme benefits
Components 23
API and access
- HTTP server
src/server.ts - Express application
src/app.ts - Authentication
src/modules/auth - Agent management
src/modules/agents - Customer API
src/modules/customer
People and applications
- Applications
src/modules/applications - Documents
src/modules/documents
Benefits and schemes
- Aawas
src/modules/aawas - Dhundhotsav
src/modules/dhundhotsav - Janni delivery
src/modules/janni-delivery - Lado Bahin
src/modules/lado-bahin - Mayra
src/modules/mayra - Shubh Laxmi
src/modules/shubh-laxmi - Scheme benefits
src/modules/schemes
Payments and inventory
- Payments
src/modules/payments - E-PIN lifecycle
src/modules/epins
Operations
- Configuration / E-PIN
src/modules/configuration - Dashboard
src/modules/dashboard - Prisma database
src/config/db.ts - Compatibility API
src/modules/compatibility/compatibility.routes.ts - Legacy payment helper
src/utils/legacy-payment-entry.ts
Other components
- Staff / agents
- Customers
Connections 18
- HTTP server → Express application: starts
- Staff / agents → Authentication: signs in
- Staff / agents → Agent management: manages agents
- Staff / agents → Applications: manages records
- Staff / agents → Scheme benefits: manages benefits
- Staff / agents → Payments: records payments
- Staff / agents → E-PIN lifecycle: manages PINs
- Customers → Customer API: uses customer API
- Customer API → Prisma database: reads and writes
- Applications → Prisma database: reads and writes
- Applications → Legacy payment helper: records legacy payments
- Scheme benefits → Prisma database: reads and writes
- Scheme benefits → Legacy payment helper: records legacy payments
- Mayra → Prisma database: reads and writes
- Mayra → Legacy payment helper: records legacy payments
- Compatibility API → Prisma database: reads and writes
- Compatibility API → Legacy payment helper: records legacy payments
- E-PIN lifecycle → Prisma database: reads and writes