How ileekhan/controle-gastos-residenciais works
Controle de Gastos Residenciais is a React interface backed by an ASP.NET Core API for managing people and financial transactions. Users create or remove people, register and browse transactions, and view per-person and consolidated income, expense, and balance totals. Transaction creation validates the person, amount, type, and the rule restricting minors to expenses. The backend separates HTTP endpoints, business services, entities, and EF Core persistence. Frontend request details and some backend behavior were not fully sampled, so uncertain links are omitted or marked unverified.
Main entry points: TransacoesController.cs Transaction endpoints · AppDbContext.cs EF Core context · TransacaoService.cs Transaction service · Program.cs API configuration
Components 13
User interface
- Management UI
frontend/src/App.tsx - API client
frontend/src/api.ts
API endpoints
- People endpoints
Backend/Controllers/PessoasController.cs - Transaction endpoints
Backend/Controllers/TransacoesController.cs - API configuration
Backend/Program.cs
Business services
- People service
Backend/Services/PessoaService.cs - Transaction service
Backend/Services/TransacaoService.cs - Transaction service contract
Backend/Services/ITransacaoService.cs - Person entity
Backend/Models/Pessoa.cs - Transaction entity
Backend/Models/Transacao.cs
Persistence
- EF Core context
Backend/Data/AppDbContext.cs - SQLite database
Backend/ControleGastos.db
Other components
- User
Connections 18
- User → Management UI: uses
frontend/src/App.tsx - Management UI → API client: requests through
frontend/src/App.tsx - API client → People endpoints: calls people routes
- API client → Transaction endpoints: calls transaction routes
- API configuration → People endpoints: maps controllers
Backend/Program.cs - API configuration → Transaction endpoints: maps controllers
Backend/Program.cs - People endpoints → People service: delegates
Backend/Controllers/PessoasController.cs - Transaction endpoints → Transaction service: delegates
Backend/Controllers/TransacoesController.cs - Transaction endpoints → People service: checks person
Backend/Controllers/TransacoesController.cs - Transaction endpoints → Transaction service: uses contract
Backend/Controllers/TransacoesController.cs - Transaction service → Transaction service contract: implements
Backend/Services/TransacaoService.cs - People service → EF Core context: queries and saves
Backend/Services/PessoaService.cs - Transaction service → EF Core context: queries and saves
Backend/Services/TransacaoService.cs - EF Core context → Person entity: maps people
Backend/Data/AppDbContext.cs - EF Core context → Transaction entity: maps transactions
Backend/Data/AppDbContext.cs - API configuration → EF Core context: configures SQLite
Backend/Program.cs - EF Core context → SQLite database: persists data
- Transaction endpoints → Transaction entity: validates and summarizes
Backend/Controllers/TransacoesController.cs