How revaldo007/finance-customer-mg works
This is an admin-facing finance and customer management app. The workflow runs from login and protected navigation to customer records, finance-account creation and monitoring, repayment recording, and dashboard/reporting views. FastAPI routers own API actions; shared models, schemas, and finance logic support those stages, with SQLite as the persistent store. The README documents analytics and reporting capabilities not fully sampled; their router paths are retained. Frontend page-to-API edges are supported by the SOURCE INDEX; unsampled details are not inferred.
Main entry points: main.py FastAPI app · App.jsx Routes and layout · client.js API client · models.py Domain models
Components 23
Admin web app
- Routes and layout
frontend/src/App.jsx - Login and session
frontend/src/context/AuthContext.jsx - API client
frontend/src/api/client.js - Dashboard analytics
frontend/src/pages/Dashboard.jsx - Customer records
frontend/src/pages/Customers.jsx - 360 profile
frontend/src/pages/CustomerProfile.jsx - Finance accounts
frontend/src/pages/FinanceAccounts.jsx - Repayment history
frontend/src/pages/Repayments.jsx - Reports
frontend/src/pages/Reports.jsx
API and access
- FastAPI app
backend/app/main.py - Authentication API
backend/app/routers/auth.py - Customer API
backend/app/routers/customers.py - Finance API
backend/app/routers/finance.py - Repayment API
backend/app/routers/repayments.py - Dashboard API
backend/app/routers/dashboard.py - Reports API
backend/app/routers/reports.py - JWT and passwords
backend/app/auth.py
Finance operations
- Health and timelines
backend/app/logic.py - API schemas
backend/app/schemas.py - Report aggregation
backend/app/routers/reports.py
Data layer
- Domain models
backend/app/models.py - SQLite database
backend/app/database.py
Other components
- Admin
Connections 43
- Admin → Routes and layout: uses
README.md - Routes and layout → Login and session: routes to
frontend/src/App.jsx - Routes and layout → Dashboard analytics: routes to
frontend/src/App.jsx - Routes and layout → Customer records: routes to
frontend/src/App.jsx - Routes and layout → 360 profile: routes to
frontend/src/App.jsx - Routes and layout → Finance accounts: routes to
frontend/src/App.jsx - Routes and layout → Repayment history: routes to
frontend/src/App.jsx - Routes and layout → Reports: routes to
frontend/src/App.jsx - Login and session → API client: calls
frontend/src/context/AuthContext.jsx - Login and session → Authentication API: requests login
README.md - Dashboard analytics → API client: calls
frontend/src/pages/Dashboard.jsx - Customer records → API client: calls
frontend/src/pages/Customers.jsx - 360 profile → API client: calls
frontend/src/pages/CustomerProfile.jsx - Finance accounts → API client: calls
frontend/src/pages/FinanceAccounts.jsx - Repayment history → API client: calls
frontend/src/pages/Repayments.jsx - Reports → API client: calls
frontend/src/pages/Reports.jsx - API client → FastAPI app: sends API requests
README.md - FastAPI app → Authentication API: registers router
backend/app/main.py - FastAPI app → Customer API: registers router
backend/app/main.py - FastAPI app → Finance API: registers router
backend/app/main.py - FastAPI app → Repayment API: registers router
backend/app/main.py - FastAPI app → Dashboard API: registers router
backend/app/main.py - FastAPI app → Reports API: registers router
backend/app/main.py - Authentication API → JWT and passwords: verifies and issues tokens
backend/app/routers/auth.py - JWT and passwords → SQLite database: gets sessions
backend/app/auth.py - FastAPI app → SQLite database: creates schema
backend/app/main.py - Customer API → SQLite database: queries and writes
backend/app/routers/customers.py - Finance API → SQLite database: queries and writes
backend/app/routers/finance.py - Repayment API → SQLite database: queries and writes
backend/app/routers/repayments.py - Dashboard API → SQLite database: queries
backend/app/routers/dashboard.py - Reports API → SQLite database: queries
backend/app/routers/reports.py - Customer API → Health and timelines: builds health and timeline
backend/app/routers/customers.py - Finance API → Health and timelines: computes monitoring data
backend/app/routers/finance.py - Dashboard API → Health and timelines: uses analytics logic
backend/app/routers/dashboard.py - Reports API → Health and timelines: uses finance logic
backend/app/routers/reports.py - Customer API → Domain models: queries customer records
backend/app/routers/customers.py - Finance API → Domain models: queries accounts
backend/app/routers/finance.py - Repayment API → Domain models: queries repayments
backend/app/routers/repayments.py - Health and timelines → Domain models: evaluates accounts
backend/app/logic.py - JWT and passwords → Domain models: looks up admin
backend/app/auth.py - FastAPI app → Domain models: seeds admin
backend/app/main.py - API schemas → Domain models: maps account status
backend/app/schemas.py - Domain models → SQLite database: declares ORM tables
backend/app/models.py