How abhii121/expense-tracker-project works
Expense Tracker is a personal-finance dashboard. Users register or sign in, then manage transactions, categories, and monthly budgets; the dashboard summarizes activity and charts trends. The Angular client calls an ASP.NET Core API, whose domain services operate on EF Core data in SQL Server. CSV import and signup-time category seeding are additional workflows. Relationships below use the README and SOURCE INDEX references; unsampled modules are represented by their exact tree paths, but their internal behavior is not inferred beyond documented capabilities.
Main entry points: app.routes.ts App routes · AppDbContext.cs EF Core context · category.service.ts Category client · transactions Transactions UI
Components 27
Angular client
- App routes
client/src/app/app.routes.ts - Login and registration
client/src/app/features/auth - Authenticated shell
client/src/app/layout/shell/shell.component.ts - Transactions UI
client/src/app/features/transactions - Categories UI
client/src/app/features/categories/categories.component.ts - Budgets UI
client/src/app/features/budgets/budgets.component.ts - Dashboard and charts
client/src/app/features/dashboard/dashboard.component.ts - Auth client
client/src/app/core/services/auth.service.ts - Transaction client
client/src/app/core/services/transaction.service.ts - Category client
client/src/app/core/services/category.service.ts - Budget client
client/src/app/core/services/budget.service.ts - Dashboard client
client/src/app/core/services/dashboard.service.ts
API endpoints
- Auth endpoint
server/ExpenseTracker.Api/Controllers/AuthController.cs - Transaction endpoint
server/ExpenseTracker.Api/Controllers/TransactionsController.cs - Category endpoint
server/ExpenseTracker.Api/Controllers/CategoriesController.cs - Budget endpoint
server/ExpenseTracker.Api/Controllers/BudgetsController.cs - Dashboard endpoint
server/ExpenseTracker.Api/Controllers/DashboardController.cs
Finance services
- Authentication and seeding
server/ExpenseTracker.Api/Services/AuthService.cs - Transaction operations
server/ExpenseTracker.Api/Services/TransactionService.cs - CSV import
server/ExpenseTracker.Api/Services/CsvImportService.cs - Category operations
server/ExpenseTracker.Api/Services/CategoryService.cs - Budget calculations
server/ExpenseTracker.Api/Services/BudgetService.cs - Dashboard aggregation
server/ExpenseTracker.Api/Services/DashboardService.cs - JWT tokens
server/ExpenseTracker.Api/Services/JwtTokenService.cs
Persistence
- EF Core context
server/ExpenseTracker.Api/Data/AppDbContext.cs - SQL Server
Other components
- User
Connections 34
- User → App routes: uses
client/src/app/app.routes.ts - App routes → Login and registration: routes to
client/src/app/app.routes.ts - App routes → Authenticated shell: routes to
client/src/app/app.routes.ts - App routes → Dashboard and charts: routes to
client/src/app/app.routes.ts - App routes → Transactions UI: routes to
client/src/app/app.routes.ts - App routes → Categories UI: routes to
client/src/app/app.routes.ts - App routes → Budgets UI: routes to
client/src/app/app.routes.ts - Login and registration → Auth client: calls
client/src/app/features/auth/register/register.component.ts - Authenticated shell → Auth client: uses
client/src/app/layout/shell/shell.component.ts - Transactions UI → Transaction client: calls
client/src/app/features/transactions/transaction-list/transaction-list.component.ts - Transactions UI → Category client: calls
client/src/app/features/transactions/transaction-list/transaction-list.component.ts - Categories UI → Category client: calls
client/src/app/features/categories/categories.component.ts - Budgets UI → Budget client: calls
client/src/app/features/budgets/budgets.component.ts - Budgets UI → Category client: calls
client/src/app/features/budgets/budgets.component.ts - Dashboard and charts → Dashboard client: calls
client/src/app/features/dashboard/dashboard.component.ts - Auth client → Auth endpoint: HTTP requests
README.md - Transaction client → Transaction endpoint: HTTP requests
README.md - Category client → Category endpoint: HTTP requests
README.md - Budget client → Budget endpoint: HTTP requests
README.md - Dashboard client → Dashboard endpoint: HTTP requests
README.md - Auth endpoint → Authentication and seeding: calls
server/ExpenseTracker.Api/Controllers/AuthController.cs - Transaction endpoint → Transaction operations: calls
server/ExpenseTracker.Api/Controllers/TransactionsController.cs - Transaction endpoint → CSV import: calls
server/ExpenseTracker.Api/Controllers/TransactionsController.cs - Category endpoint → Category operations: calls
server/ExpenseTracker.Api/Controllers/CategoriesController.cs - Budget endpoint → Budget calculations: calls
server/ExpenseTracker.Api/Controllers/BudgetsController.cs - Dashboard endpoint → Dashboard aggregation: calls
server/ExpenseTracker.Api/Controllers/DashboardController.cs - Authentication and seeding → JWT tokens: generates token
server/ExpenseTracker.Api/Services/AuthService.cs - Authentication and seeding → EF Core context: reads and writes
server/ExpenseTracker.Api/Services/AuthService.cs - Transaction operations → EF Core context: reads and writes
server/ExpenseTracker.Api/Services/TransactionService.cs - CSV import → EF Core context: imports into
server/ExpenseTracker.Api/Services/CsvImportService.cs - Category operations → EF Core context: reads and writes
server/ExpenseTracker.Api/Services/CategoryService.cs - Budget calculations → EF Core context: reads and writes
server/ExpenseTracker.Api/Services/BudgetService.cs - Dashboard aggregation → EF Core context: reads
server/ExpenseTracker.Api/Services/DashboardService.cs - EF Core context → SQL Server: persists data