How mothibimalebana/mbuzi-tshena-lms works
Mbudzi Tshena is a microfinance loan-management system with borrower and administrator interfaces backed by a FastAPI service. The user-facing journey covers account access, loan application, review, and repayment tracking; administrators also manage borrowers, payment proofs, investments, and chatbot content. The backend includes risk assessment, document handling, and notifications. The README describes the product but gives no workflow details; source-index references support backend module relationships, while frontend-to-API requests were not shown, so that connection is left unasserted.
Main entry points: main.py FastAPI service · DashboardLayout.tsx Admin workspace · payments.py Payment handling · routes.tsx Page routing
Components 34
Borrower experience
- Web application
src/app/App.tsx - Page routing
src/app/routes.tsx - Borrower login
src/app/pages/UserLogin.tsx - Borrower dashboard
src/app/pages/UserDashboard.tsx - Loan application
src/app/pages/LoanApplication.tsx - Loan confirmation
src/app/pages/LoanConfirmation.tsx
Administration
- Admin login
src/app/pages/AdminLogin.tsx - Admin workspace
src/app/pages/DashboardLayout.tsx - Admin overview
src/app/pages/DashboardOverview.tsx - Loan review
src/app/pages/LoanRequests.tsx - Borrower management
src/app/pages/BorrowersList.tsx - Payment tracking
src/app/pages/PaymentsTracker.tsx - Payment proofs
src/app/pages/ProofOfPayments.tsx - Investor requests
src/app/pages/InvestorRequests.tsx - Chatbot questions
src/app/pages/ChatbotQuestions.tsx
API and identity
- FastAPI service
backend/app/main.py - Identity and access
backend/app/auth.py - Authentication routes
backend/app/routers/auth.py - Request schemas
backend/app/schemas.py - Relational database
backend/app/database.py - Loan domain records
backend/app/models.py
Lending operations
- Application handling
backend/app/routers/applications.py - Payment handling
backend/app/routers/payments.py - Proof verification
backend/app/routers/proofs.py - Document handling
backend/app/routers/documents.py - Investment handling
backend/app/routers/investments.py - Admin operations
backend/app/routers/admin.py
Risk and services
- Notifications
backend/app/routers/notifications.py - Chatbot service
backend/app/routers/chatbot.py - Risk assessment
backend/app/utils/risk_assessment.py - Risk scoring
backend/app/utils/risk_score.py - Loan balance
backend/app/utils/loan_balance.py - Repayment reliability
backend/app/utils/reliability.py
Other components
- Borrower
Connections 48
- Borrower → Page routing: uses
src/app/routes.tsx - Web application → Page routing: provides routes
src/app/App.tsx - Page routing → Borrower login: routes to
src/app/routes.tsx - Page routing → Borrower dashboard: routes to
src/app/routes.tsx - Page routing → Loan application: routes to
src/app/routes.tsx - Page routing → Loan confirmation: routes to
src/app/routes.tsx - Page routing → Admin login: routes to
src/app/routes.tsx - Page routing → Admin workspace: routes to
src/app/routes.tsx - Admin workspace → Admin overview: contains route
src/app/routes.tsx - Admin workspace → Loan review: contains route
src/app/routes.tsx - Admin workspace → Borrower management: contains route
src/app/routes.tsx - Admin workspace → Payment tracking: contains route
src/app/routes.tsx - Admin workspace → Payment proofs: contains route
src/app/routes.tsx - Admin workspace → Investor requests: contains route
src/app/routes.tsx - Admin workspace → Chatbot questions: contains route
src/app/routes.tsx - FastAPI service → Authentication routes: mounts
backend/app/main.py - FastAPI service → Application handling: mounts
backend/app/main.py - FastAPI service → Payment handling: mounts
backend/app/main.py - FastAPI service → Admin operations: mounts
backend/app/main.py - FastAPI service → Document handling: mounts
backend/app/main.py - FastAPI service → Notifications: mounts
backend/app/main.py - FastAPI service → Proof verification: mounts
backend/app/main.py - FastAPI service → Investment handling: mounts
backend/app/main.py - FastAPI service → Chatbot service: mounts
backend/app/main.py - Authentication routes → Identity and access: uses
backend/app/routers/auth.py - Authentication routes → Relational database: queries
backend/app/routers/auth.py - Authentication routes → Request schemas: uses schemas
backend/app/routers/auth.py - Application handling → Risk assessment: assesses
backend/app/routers/applications.py - Application handling → Relational database: queries
backend/app/routers/applications.py - Application handling → Loan domain records: uses records
backend/app/routers/applications.py - Application handling → Identity and access: checks access
backend/app/routers/applications.py - Application handling → Request schemas: uses schemas
backend/app/routers/applications.py - Payment handling → Relational database: queries
backend/app/routers/payments.py - Payment handling → Loan domain records: uses records
backend/app/routers/payments.py - Payment handling → Identity and access: checks access
backend/app/routers/payments.py - Payment handling → Loan balance: updates balance
backend/app/routers/payments.py - Payment handling → Repayment reliability: updates reliability
backend/app/routers/payments.py - Payment handling → Risk scoring: uses score
backend/app/routers/payments.py - Proof verification → Payment handling: references
backend/app/routers/proofs.py - Proof verification → Relational database: queries
backend/app/routers/proofs.py - Proof verification → Loan domain records: uses records
backend/app/routers/proofs.py - Proof verification → Loan balance: uses balance
backend/app/routers/proofs.py - Proof verification → Repayment reliability: uses reliability
backend/app/routers/proofs.py - Document handling → Relational database: queries
backend/app/routers/documents.py - Document handling → Loan domain records: uses records
backend/app/routers/documents.py - Investment handling → Relational database: queries
backend/app/routers/investments.py - Investment handling → Loan domain records: uses records
backend/app/routers/investments.py - Admin operations → Relational database: queries
backend/app/routers/admin.py