Modern FastAPI app for tracking loans & holdings with monthly interest.
- Borrower Management: Track loans, interest payments, overdue accounts
- Holdings Management: Multi-currency (INR/THB/RMB), transfers, balances
- Authentication: Secure login with 30-day session cache
- Mobile responsive black & white minimalistic UI
pip install -r requirements.txt
python -m app.mainLogin: admin/admin123 (Change in production!) Access: http://localhost:8000
The app supports SQLite locally and PostgreSQL in production.
Use environment variable DATABASE_URL:
postgresql://USER:PASSWORD@HOST/DB_NAME?sslmode=requireNotes:
- Neon connection strings usually already include
sslmode=require. postgres://URLs are auto-normalized topostgresql://.
This repository includes render.yaml for one-click setup.
- Push this repo to GitHub.
- In Render, create a new Blueprint and select this repository.
- Set required environment variables in Render:
DATABASE_URL= your Neon connection stringADMIN_PASSWORD= secure admin password- (Optional)
ADMIN_USERNAME
- Deploy.
Default start command:
uvicorn app.main:app --host 0.0.0.0 --port $PORTapp/ - Application code (routers, models, services) templates/ - HTML templates static/ - CSS styles loans.db - SQLite database (auto-created)