How sakethreddymamidigari/finnect-finance-os works
FINNECT is a finance-business loan management system. A finance owner signs in, manages customers and loans, records payments, and follows renewals or settlements; dashboard and report views summarize business activity. The React app calls a FastAPI REST backend, whose services apply business logic and use SQLAlchemy-backed PostgreSQL data. The graph preserves the README’s major capabilities, but many routes and frontend modules were not sampled; those subsystems are represented at their known paths, with only documented or indexed relationships shown.
Main entry points: api API routers · AppRouter.tsx App routing · models Finance records · axios.ts HTTP client
Components 25
Web application
- App routing
frontend/src/routes/AppRouter.tsx - Owner access
frontend/src/pages/auth/AuthPage.tsx - Customer records
frontend/src/pages/customers/CustomerLedgerPage.tsx - Loan workflows
frontend/src/pages/loans/LoanDetailPage.tsx - Dashboard reports
frontend/src/pages/dashboard/DashboardPage.tsx - Payments settings
frontend/src/pages/payments/PaymentsPage.tsx - Session state
frontend/src/context/AuthContext.tsx - HTTP client
frontend/src/api/axios.ts - Authentication calls
frontend/src/services/authService.ts - Customer calls
frontend/src/services/customerService.ts - Loan calls
frontend/src/services/loanService.ts - Dashboard calls
frontend/src/services/dashboardService.ts
REST API
- API routers
backend/app/api - JWT authorization
backend/app/core/auth.py
Finance operations
- Owner management
backend/app/services/finance_owner_service.py - Customer management
backend/app/services/customer_service.py - Loan lifecycle
backend/app/services/loan_service.py - Payment allocation
backend/app/services/payment_service.py - Loan renewals
backend/app/services/loan_renewal_service.py - Analytics reports
backend/app/services/dashboard_service.py - Finance settings
backend/app/services/finance_settings_service.py
Data and calculations
- Interest calculation
backend/app/utils/interest_calculator.py - Finance records
backend/app/models - PostgreSQL
Other components
- Finance owner
Connections 34
- Finance owner → App routing: uses
frontend/src/routes/AppRouter.tsx - App routing → Owner access: routes to
frontend/src/routes/AppRouter.tsx - App routing → Dashboard reports: routes to
frontend/src/routes/AppRouter.tsx - App routing → Customer records: routes to
frontend/src/routes/AppRouter.tsx - App routing → Loan workflows: routes to
frontend/src/routes/AppRouter.tsx - App routing → Payments settings: routes to
frontend/src/routes/AppRouter.tsx - Owner access → Session state: updates session
frontend/src/pages/auth/AuthPage.tsx - Authentication calls → HTTP client: sends requests
frontend/src/services/authService.ts - Customer calls → HTTP client: sends requests
frontend/src/services/customerService.ts - Loan calls → HTTP client: sends requests
frontend/src/services/loanService.ts - Dashboard calls → HTTP client: sends requests
frontend/src/services/dashboardService.ts - Owner access → Authentication calls: authenticates
frontend/src/pages/auth/AuthPage.tsx - Customer records → Customer calls: loads records
frontend/src/pages/customers/CustomerLedgerPage.tsx - Dashboard reports → Dashboard calls: loads reports
frontend/src/pages/dashboard/DashboardPage.tsx - Loan workflows → Loan calls: requests loans
frontend/src/pages/loans/LoanDetailPage.tsx - HTTP client → API routers: REST requests
README.md - API routers → Owner management: delegates
- API routers → Customer management: delegates
- API routers → Loan lifecycle: delegates
backend/app/api/loan.py - API routers → Payment allocation: delegates
- API routers → Loan renewals: delegates
- API routers → Analytics reports: delegates
backend/app/api/dashboard.py - API routers → Finance settings: delegates
- API routers → JWT authorization: checks identity
backend/app/api/loan.py - Customer management → Finance records: reads and writes
backend/app/services/customer_service.py - Loan lifecycle → Finance records: reads and writes
backend/app/services/loan_service.py - Loan lifecycle → Interest calculation: calculates interest
backend/app/services/loan_service.py - Payment allocation → Finance records: reads and writes
backend/app/services/payment_service.py - Payment allocation → Interest calculation: calculates interest
backend/app/services/payment_service.py - Loan renewals → Finance records: updates loan records
backend/app/services/loan_renewal_service.py - Loan renewals → Interest calculation: calculates interest
backend/app/services/loan_renewal_service.py - Analytics reports → Finance records: queries metrics
backend/app/services/dashboard_service.py - Analytics reports → Interest calculation: calculates accrual
backend/app/services/dashboard_service.py - Finance records → PostgreSQL: persists records
README.md