How 36vanquyet/spendmate_app works
SpendMate is a personal and shared expense-management MVP. A user works through the responsive web interface to authenticate, manage transactions and groups, set budgets and reminders, and view statistics or export reports. The backend is a FastAPI application whose routes and domain capabilities are concentrated in one module, with SQLAlchemy models and SQLite persistence, JWT/password helpers, and Pydantic request schemas. The README documents the frontend and backend as separate processes; the frontend-to-API connection is implied, but its implementation was not sampled.
Main entry points: main.py FastAPI routes · index.html Responsive interface · app.js Browser behavior · database.py SQLAlchemy models
Components 13
Web client
- Responsive interface
frontend/index.html - Browser behavior
frontend/assets/app.js
API capabilities
- FastAPI routes
backend/app/main.py - Accounts and profiles
backend/app/main.py - Transactions
backend/app/main.py - Groups and comments
backend/app/main.py - Budgets and reminders
backend/app/main.py - Statistics and exports
backend/app/main.py
Backend foundations
- JWT and passwords
backend/app/auth.py - Request schemas
backend/app/schemas.py
Persistence
- SQLAlchemy models
backend/app/database.py - SQLite database
spendmate.db
Other components
- User
Connections 12
- User → Responsive interface: uses
README.md - Responsive interface → Browser behavior: loads
- Browser behavior → FastAPI routes: calls API
- FastAPI routes → Accounts and profiles: routes
backend/app/main.py - FastAPI routes → Transactions: routes
backend/app/main.py - FastAPI routes → Groups and comments: routes
backend/app/main.py - FastAPI routes → Budgets and reminders: routes
backend/app/main.py - FastAPI routes → Statistics and exports: routes
backend/app/main.py - FastAPI routes → JWT and passwords: calls
backend/app/main.py - FastAPI routes → Request schemas: uses
backend/app/main.py - FastAPI routes → SQLAlchemy models: queries
backend/app/main.py - SQLAlchemy models → SQLite database: connects
backend/app/database.py