How mehboobali-portfolio/micro-lending-app works
Micro Lending App is a full-stack invoice and payment-link application. Finance managers register or sign in, manage searchable invoices, and generate expiring links; customers use a public page to review and confirm payment. Flask routes own backend operations, SQLite stores users, customers, invoices, and links, and confirmation dispatches payment notifications. The React app selects the manager or public-payment interface and calls the API. Backend and frontend source excerpts support the principal calls; broader capabilities are included where documented, with no unverified subsystem links added.
Main entry points: app.py Flask app · App.jsx App routing · database.py Database manager · api.js API client
Components 15
Web application
- App routing
frontend/src/App.jsx - Register and login
frontend/src/components/Login.jsx - Invoice dashboard
frontend/src/components/Dashboard.jsx - Payment page
frontend/src/components/PayInvoice.jsx - API client
frontend/src/services/api.js
Flask API
- Flask app
backend/app.py - Authentication routes
backend/routes/auth.py - Invoice routes
backend/routes/invoices.py - Public payment routes
backend/routes/public_pay.py
Invoice and payment domain
- Payment link factory
backend/factories/payment_link_factory.py - Payment observers
backend/observers/payment_observer.py
Persistence
- Database manager
backend/database.py - SQLite database
backend/database.db
Other components
- Finance manager
- Customer
Connections 19
- Finance manager → App routing: uses portal
README.md - Customer → App routing: opens payment
README.md - App routing → Register and login: renders
frontend/src/App.jsx - App routing → Invoice dashboard: renders
frontend/src/App.jsx - App routing → Payment page: renders
frontend/src/App.jsx - Register and login → API client: calls
frontend/src/components/Login.jsx - Invoice dashboard → API client: calls
frontend/src/components/Dashboard.jsx - Payment page → API client: calls
frontend/src/components/PayInvoice.jsx - API client → Flask app: HTTP requests
- Flask app → Database manager: initializes
backend/app.py - Flask app → Authentication routes: registers routes
backend/app.py - Flask app → Invoice routes: registers routes
backend/app.py - Flask app → Public payment routes: registers routes
backend/app.py - Authentication routes → Database manager: reads and writes
backend/routes/auth.py - Invoice routes → Database manager: reads and writes
backend/routes/invoices.py - Invoice routes → Payment link factory: creates links
backend/routes/invoices.py - Public payment routes → Database manager: reads and writes
backend/routes/public_pay.py - Public payment routes → Payment observers: notifies
backend/routes/public_pay.py - Database manager → SQLite database: stores records
backend/database.py