How avvi575/family-expense-tracker works
Family Expense Tracker is a shared family-finance product with React web and Android clients backed by a NestJS REST API. Users authenticate or accept an invitation, select or create a family, then record and review expenses, income, budgets, goals, and reports. The API also supports statement imports, recurring expenses, notifications, and alert rules. The source excerpts and index show key routing and service calls; several substantial feature services were not sampled, so their internal processing links are intentionally omitted.
Main entry points: App.tsx Web application · auth.service.ts Authentication · prisma.service.ts Prisma data access · ApiClient.kt Mobile API client
Components 22
User clients
- Web application
web/src/App.tsx - Android application
android/app/src/main/java/com/fet/app/MainActivity.kt - Mobile view model
android/app/src/main/java/com/fet/app/ui/AppViewModel.kt - Mobile API client
android/app/src/main/java/com/fet/app/data/ApiClient.kt - Mobile session
android/app/src/main/java/com/fet/app/data/SessionManager.kt
Identity and families
- Authentication
backend/src/auth/auth.service.ts - Family membership
backend/src/families/families.service.ts
Finance workflows
- Expense tracking
backend/src/expenses/expenses.controller.ts - Income tracking
backend/src/incomes/incomes.controller.ts - Categories
backend/src/categories/categories.controller.ts - Budgets
backend/src/budgets/budgets.controller.ts - Savings goals
backend/src/goals/goals.controller.ts - Recurring expenses
backend/src/recurring/recurring.controller.ts - Statement imports
backend/src/statement-import/bank-statement.controller.ts - Statement parser
backend/src/statement-import/parsers/parser.registry.ts
Insights and alerts
- Financial reports
backend/src/reports/reports.controller.ts - Notifications
backend/src/notifications/notifications.service.ts - Alert rules
backend/src/alerts/alerts.controller.ts
API and persistence
- REST API
backend/src/main.ts - Prisma data access
backend/src/common/prisma.service.ts - Message delivery
backend/src/comms/delivery.service.ts
Other components
- Family user
Connections 24
- Family user → Web application: uses
web/src/App.tsx - Family user → Android application: uses
android/app/src/main/java/com/fet/app/MainActivity.kt - Web application → Authentication: authenticates via API
README.md - Android application → Mobile view model: starts
android/app/src/main/java/com/fet/app/MainActivity.kt - Mobile view model → Mobile API client: calls
android/app/src/main/java/com/fet/app/ui/AppViewModel.kt - Mobile API client → Mobile session: reads token
android/app/src/main/java/com/fet/app/data/ApiClient.kt - Mobile API client → REST API: sends REST requests
README.md - Web application → Family membership: loads families
web/src/App.tsx - Authentication → Family membership: adds invite member
backend/src/auth/auth.service.ts - Authentication → Message delivery: sends reset email
backend/src/auth/auth.service.ts - Web application → Expense tracking: routes expense work
web/src/App.tsx - Web application → Income tracking: routes income work
web/src/App.tsx - Web application → Statement imports: routes imports
web/src/App.tsx - Statement imports → Statement parser: selects parser
- Web application → Budgets: routes budgets
web/src/App.tsx - Web application → Savings goals: routes goals
web/src/App.tsx - Budgets → Notifications: creates alerts
- Web application → Financial reports: routes dashboard
web/src/App.tsx - Expense tracking → Prisma data access: persists records
- Family membership → Prisma data access: stores membership
backend/src/families/families.service.ts - Authentication → Prisma data access: reads and writes users
backend/src/auth/auth.service.ts - Notifications → Prisma data access: persists notifications
- Family user → Alert rules: configures rules
README.md - Family user → Recurring expenses: manages schedules
README.md