How bounlaiygame01/expense_tracker_lao works
This repository contains a Flutter expense-tracking app and a FastAPI backend. The backend exposes category, transaction, and budget CRUD endpoints backed by SQLAlchemy and MySQL; the sampled backend code also initializes tables and seeds default categories. The Flutter source is listed in the tree but was not sampled, and the README is empty, so its screens and exact API-call flow cannot be verified. The graph focuses on the evidenced backend workflow and its documented Flutter client boundary.
Main entry points: main.py FastAPI app · database.py DB sessions · models.py Domain models · categories.py Category endpoints
Components 9
API routing
- FastAPI app
backend/app/main.py - Category endpoints
backend/app/routers/categories.py - Transaction endpoints
backend/app/routers/transactions.py - Budget endpoints
backend/app/routers/budgets.py
Expense data
- Request schemas
backend/app/schemas.py - Domain models
backend/app/models.py
Persistence
- DB sessions
backend/app/database.py - MySQL database
Other components
- Flutter client
Connections 17
- Flutter client → FastAPI app: calls API
backend/app/main.py - FastAPI app → Category endpoints: registers routes
backend/app/main.py - FastAPI app → Transaction endpoints: registers routes
backend/app/main.py - FastAPI app → Budget endpoints: registers routes
backend/app/main.py - FastAPI app → Domain models: creates tables
backend/app/main.py - FastAPI app → DB sessions: uses engine
backend/app/main.py - Category endpoints → Request schemas: validates payloads
backend/app/routers/categories.py - Category endpoints → Domain models: queries and updates
backend/app/routers/categories.py - Category endpoints → DB sessions: opens sessions
backend/app/routers/categories.py - Transaction endpoints → Request schemas: validates payloads
backend/app/routers/transactions.py - Transaction endpoints → Domain models: queries and updates
backend/app/routers/transactions.py - Transaction endpoints → DB sessions: opens sessions
backend/app/routers/transactions.py - Budget endpoints → Request schemas: validates payloads
backend/app/routers/budgets.py - Budget endpoints → Domain models: queries and updates
backend/app/routers/budgets.py - Budget endpoints → DB sessions: opens sessions
backend/app/routers/budgets.py - Domain models → DB sessions: uses model base
backend/app/models.py - DB sessions → MySQL database: connects to
backend/app/database.py