How mahesh2611975/credolocal works
MicroFinance Platform supports applicant loan underwriting and lender review, with a React client, FastAPI API, ML scoring, PostgreSQL-backed records, and optional blockchain and S3 integrations. The main applicant journey runs from registration and document submission through eligibility, EMI and lender selection, submission, and application tracking; lenders review applications in a separate dashboard. The README documents on-device SMS feature extraction, while implementation excerpts are incomplete, so unverified connections are omitted. Optional blockchain and S3 paths are shown separately.
Main entry points: applications.py Application routes · App.jsx Web routes · database.py Database sessions · models.py Loan and user records
Components 30
Applicant and lender experience
- Web routes
frontend/src/App.jsx - Sign in and register
frontend/src/pages/Login.jsx - Application form
frontend/src/pages/ApplyForm.jsx - SMS features
frontend/src/services/smsProcessor.js - Eligibility results
frontend/src/pages/EligibilityResult.jsx - EMI selection
frontend/src/pages/EMISelection.jsx - Lender selection
frontend/src/pages/LenderSelection.jsx - Application tracking
frontend/src/pages/MyApplications.jsx - Lender dashboard
frontend/src/pages/LenderDashboard.jsx - Vendor dashboard
frontend/src/pages/VendorDashboard.jsx - Session and workflow state
frontend/src/context/AppContext.jsx - API client
frontend/src/api/axios.js
API and identity
- FastAPI app
backend/app/main.py - Authentication routes
backend/app/routers/auth.py - Application routes
backend/app/routers/applications.py - Lender routes
backend/app/routers/lenders.py - JWT and password service
backend/app/services/auth_service.py
Underwriting and matching
- AI analysis
backend/app/services/ai_service.py - EMI calculation
backend/app/services/emi_service.py - Lender matching
backend/app/services/lender_service.py
Application records
- Database sessions
backend/app/database.py - Loan and user records
backend/app/models/models.py
External integrations
- PostgreSQL
- File uploads
backend/app/services/s3_service.py - AWS S3
- Blockchain audit service
backend/app/services/blockchain_service.py - Loan application contract
contracts/contracts/LoanApplicationContract.sol
Other components
- Applicant
- Lender
- Polygon network
Connections 43
- Applicant → Sign in and register: registers or signs in
README.md - Applicant → Application form: submits documents
README.md - Application form → SMS features: extracts local features
README.md - Application form → Eligibility results: views analysis
README.md - Eligibility results → EMI selection: chooses repayment
README.md - EMI selection → Lender selection: selects lender
README.md - Lender selection → Application tracking: tracks submission
README.md - Lender → Lender dashboard: reviews applications
README.md - Applicant → Vendor dashboard: views mobile dashboard
README.md - Web routes → Sign in and register: routes to
frontend/src/App.jsx - Web routes → Application form: routes to
frontend/src/App.jsx - Web routes → Eligibility results: routes to
frontend/src/App.jsx - Web routes → EMI selection: routes to
frontend/src/App.jsx - Web routes → Lender selection: routes to
frontend/src/App.jsx - Web routes → Application tracking: routes to
frontend/src/App.jsx - Web routes → Lender dashboard: routes to
frontend/src/App.jsx - Web routes → Vendor dashboard: routes to
frontend/src/App.jsx - Sign in and register → Session and workflow state: updates session
frontend/src/pages/Login.jsx - Session and workflow state → API client: uses API client
frontend/src/context/AppContext.jsx - API client → FastAPI app: sends API requests
- FastAPI app → Authentication routes: registers routes
backend/app/main.py - FastAPI app → Application routes: registers routes
backend/app/main.py - FastAPI app → Lender routes: registers routes
backend/app/main.py - Authentication routes → JWT and password service: uses identity helpers
backend/app/routers/auth.py - Application routes → JWT and password service: checks user identity
backend/app/routers/applications.py - Application routes → AI analysis: runs analysis
backend/app/routers/applications.py - Application routes → EMI calculation: calculates EMI
backend/app/routers/applications.py - Application routes → Lender matching: requests matching
backend/app/routers/applications.py - Application routes → Blockchain audit service: writes audit events
backend/app/routers/applications.py - Application routes → File uploads: uses upload service
backend/app/routers/applications.py - Authentication routes → Database sessions: gets database session
backend/app/routers/auth.py - Authentication routes → Loan and user records: queries users
backend/app/routers/auth.py - Application routes → Database sessions: gets database session
backend/app/routers/applications.py - Application routes → Loan and user records: reads and writes records
backend/app/routers/applications.py - Lender routes → Database sessions: uses database session
backend/app/routers/lenders.py - Lender routes → Loan and user records: uses lender records
backend/app/routers/lenders.py - JWT and password service → Database sessions: loads user
backend/app/services/auth_service.py - Loan and user records → Database sessions: defines ORM base
backend/app/models/models.py - Database sessions → PostgreSQL: connects to
README.md - Lender matching → Loan and user records: uses lender rules
backend/app/services/lender_service.py - Blockchain audit service → Loan application contract: uses contract interface
- Loan application contract → Polygon network: deployed on
README.md - File uploads → AWS S3: uploads files
README.md