How lucifa9051799500-sys/spendwise works
Spendwise is a Flask personal-finance tracker. Users register or log in, then record income and expenses and view an income/expense balance on the dashboard; they can also clear income or log out. The sampled app.py contains the route handlers and PostgreSQL access, while the templates provide the page layer. The tree includes reports, transactions, and profile templates, but the sampled app has no routes that render them, so their wiring is uncertain.
Main entry points: app.py Flask app · home.html Home page · register.html Registration page · login.html Login page
Components 12
Web interface
- Home page
templates/home.html - Registration page
templates/register.html - Login page
templates/login.html - Dashboard page
templates/dashboard.html - Add expense page
templates/add_expense.html - Add income page
templates/add_income.html - Reports page
templates/reports.html - Transactions page
templates/transactions.html - Profile page
templates/profile.html
Application routes
- Flask app
app.py
Finance data
- PostgreSQL
app.py
Other components
- User
Connections 8
- User → Flask app: submits requests
- Flask app → Home page: renders
- Flask app → Registration page: renders
- Flask app → Login page: renders
- Flask app → Dashboard page: renders
- Flask app → Add expense page: renders
- Flask app → Add income page: renders
- Flask app → PostgreSQL: reads and writes