How vasanthselvamani/lending works
Meridian Lending Office is an internal lending-operations system for home loans and several loan-against-property products. Staff sign in, manage customers and applications, track documents, issue sanction letters and Key Fact Statements, record transactions, and review dashboards and reports. The React workspace calls an authenticated Express API; the server applies lending calculations and reporting, generates PDFs, and persists operational records in protected local CSV files. The README documents backup, restore, settings, and role-based controls. Some subsystem links are documented rather than visible in the sampled server routes.
Main entry points: App.tsx Workspace Shell · api.ts Bearer API Client · server.ts Express API · csvEngine.ts CSV Storage
Components 23
Staff Workspace
- Workspace Shell
src/App.tsx - Sign In
src/components/AuthScreen.tsx - Bearer API Client
src/lib/api.ts
Loan Operations
- Customers
src/components/CustomersView.tsx - Applications
src/components/ApplicationsView.tsx - Document Checklist
src/components/DocumentsView.tsx - Sanction Letters
src/components/SanctionLetterView.tsx - KFS and Repayment
src/components/KfsGeneratorView.tsx - Dashboard
src/components/DashboardView.tsx - Reports
src/components/ReportsView.tsx
API Services
- Express API
server.ts - Loan Calculator
server/lib/loanCalculator.ts - Analytics Engine
server/lib/analyticsAndReports.ts - PDF Generator
server/lib/pdfGenerator.ts
Records and Controls
- CSV Storage
server/lib/csvEngine.ts - Authentication and RBAC
server/lib/auth.ts - Office Settings
server/lib/settingsStore.ts - Backup and Restore
src/components/BackupRestoreView.tsx - Staff Accounts
src/components/UsersView.tsx - Settings UI
src/components/SettingsView.tsx - Initial Sample Data
server/lib/seedData.ts - Lending Domain Types
src/types/lending.ts
Other components
- Office Staff
Connections 42
- Office Staff → Workspace Shell: uses
README.md - Workspace Shell → Sign In: renders
src/App.tsx - Workspace Shell → Customers: selects view
src/App.tsx - Workspace Shell → Applications: selects view
src/App.tsx - Workspace Shell → Document Checklist: selects view
src/App.tsx - Workspace Shell → Sanction Letters: selects view
src/App.tsx - Workspace Shell → KFS and Repayment: selects view
src/App.tsx - Workspace Shell → Dashboard: selects view
src/App.tsx - Workspace Shell → Reports: selects view
src/App.tsx - Workspace Shell → Backup and Restore: selects view
src/App.tsx - Workspace Shell → Staff Accounts: selects view
src/App.tsx - Workspace Shell → Settings UI: selects view
src/App.tsx - Sign In → Bearer API Client: submits credentials
src/components/AuthScreen.tsx - Workspace Shell → Bearer API Client: checks session
src/App.tsx - Customers → Bearer API Client: requests data
src/components/CustomersView.tsx - Applications → Bearer API Client: updates records
src/components/ApplicationsView.tsx - Document Checklist → Bearer API Client: requests data
src/components/DocumentsView.tsx - Sanction Letters → Bearer API Client: requests issuance
src/components/SanctionLetterView.tsx - KFS and Repayment → Bearer API Client: requests issuance
src/components/KfsGeneratorView.tsx - Dashboard → Bearer API Client: loads metrics
src/components/DashboardView.tsx - Reports → Bearer API Client: loads reports
src/components/ReportsView.tsx - Backup and Restore → Bearer API Client: requests backups
src/components/BackupRestoreView.tsx - Staff Accounts → Bearer API Client: manages users
src/components/UsersView.tsx - Settings UI → Bearer API Client: updates settings
src/components/SettingsView.tsx - Bearer API Client → Express API: sends HTTP requests
README.md - Express API → Authentication and RBAC: enforces access
server.ts - Express API → CSV Storage: reads and writes
server.ts - Express API → Loan Calculator: calculates loans
server.ts - Express API → Analytics Engine: builds reports
server.ts - Express API → PDF Generator: generates documents
README.md - Express API → Office Settings: loads configuration
README.md - Express API → Initial Sample Data: seeds on startup
server.ts - Express API → CSV Storage: initializes storage
README.md - Backup and Restore → Express API: requests restore
src/components/BackupRestoreView.tsx - Authentication and RBAC → CSV Storage: reads accounts
server/lib/auth.ts - Initial Sample Data → CSV Storage: writes sample records
server/lib/seedData.ts - Initial Sample Data → Loan Calculator: calculates samples
server/lib/seedData.ts - Initial Sample Data → Office Settings: uses defaults
server/lib/seedData.ts - Express API → Lending Domain Types: uses domain types
server.ts - Loan Calculator → Lending Domain Types: uses calculation types
server/lib/loanCalculator.ts - Analytics Engine → Lending Domain Types: uses report types
server/lib/analyticsAndReports.ts - CSV Storage → Lending Domain Types: uses storage types
server/lib/csvEngine.ts