How dmpinero/gestor-gastos-personal works
Gestor de Gastos Personal is a web app for tracking personal expenses. Users work through a Vue SPA and FastAPI REST API to manage accounts, categories and transactions, then review dashboards, annual forecasts and notifications; they can also import bank files and back up or restore data. The backend separates API routes, application use cases, domain ports and SQLAlchemy-backed persistence. The README documents MySQL and the product capabilities; sampled source confirms route registration, forecast calculations and parts of PDF import. Several feature links are documented but their runtime wiring was not sampled.
Main entry points: enrutadores REST routes · App.vue Vue application · importar_movimientos_pdf.py Bank-file import · obtener_resumen_anual.py Annual forecast
Components 20
Web application
- Vue application
frontend/src/App.vue - Feature screens
frontend/src/vistas - API client
frontend/src/api/cliente.ts
API interface
- REST routes
backend/src/gestor_gastos/interfaces/api/v1/enrutadores - Error handlers
backend/src/gestor_gastos/interfaces/api/manejadores_errores.py
Expense workflows
- Accounts and categories
backend/src/gestor_gastos/aplicacion/cuenta - Transaction management
backend/src/gestor_gastos/aplicacion/movimiento - Attachments
backend/src/gestor_gastos/aplicacion/adjunto - Dashboard summary
backend/src/gestor_gastos/aplicacion/dashboard/obtener_resumen.py - Bank-file import
backend/src/gestor_gastos/aplicacion/importacion/importar_movimientos_pdf.py - Upcoming events
backend/src/gestor_gastos/aplicacion/notificaciones/listar_proximos_eventos.py - Annual forecast
backend/src/gestor_gastos/aplicacion/prevision/obtener_resumen_anual.py - Full backup import/export
backend/src/gestor_gastos/aplicacion/exportacion
Domain and persistence
- Movement model and port
backend/src/gestor_gastos/dominio/movimiento/repositorio.py - Forecast model and ports
backend/src/gestor_gastos/dominio/prevision/repositorio.py - SQLAlchemy repositories
backend/src/gestor_gastos/infraestructura/persistencia/repositorios/repositorio_movimientos_sqlalchemy.py - MySQL database
- PDF reader port
backend/src/gestor_gastos/dominio/importacion/lector_pdf.py - Excel import/export
backend/src/gestor_gastos/infraestructura/exportacion/lector_exportacion_completa_openpyxl.py
Other components
- Expense user
Connections 21
- Expense user → Vue application: uses
README.md - Vue application → Feature screens: renders
frontend/src/App.vue - Feature screens → API client: requests data
- API client → REST routes: calls REST API
- REST routes → Accounts and categories: dispatches
- REST routes → Transaction management: dispatches
- REST routes → Attachments: dispatches
- REST routes → Dashboard summary: dispatches
- REST routes → Bank-file import: dispatches
- REST routes → Upcoming events: dispatches
- REST routes → Annual forecast: dispatches
backend/src/gestor_gastos/interfaces/api/v1/enrutadores/prevision.py - REST routes → Full backup import/export: dispatches
- REST routes → Error handlers: registers
backend/src/gestor_gastos/main.py - Bank-file import → PDF reader port: reads PDF
backend/src/gestor_gastos/aplicacion/importacion/importar_movimientos_pdf.py - Bank-file import → Movement model and port: creates movements
backend/src/gestor_gastos/aplicacion/importacion/importar_movimientos_pdf.py - Annual forecast → Movement model and port: queries actuals
backend/src/gestor_gastos/aplicacion/prevision/obtener_resumen_anual.py - Annual forecast → Forecast model and ports: uses forecast ports
backend/src/gestor_gastos/aplicacion/prevision/obtener_resumen_anual.py - SQLAlchemy repositories → Movement model and port: implements port
backend/src/gestor_gastos/infraestructura/persistencia/repositorios/repositorio_movimientos_sqlalchemy.py - SQLAlchemy repositories → MySQL database: persists data
- Full backup import/export → Excel import/export: reads workbook
- Vue application → REST routes: uses REST API
README.md