How felixdeveloper87/personal-budget-v2 works
Personal Budget v2 is a personal-finance product with a React web client and a companion Expo/React Native client. Users authenticate, then manage accounts and transactions and explore summaries, budgets, goals, payments, reports, and household finances. The web app’s dashboard data hook loads transactions and period summaries through a shared API client; the README documents JWT-scoped backend access and PostgreSQL persistence. The backend is not present in the supplied tree, so it is represented as an external service. Mobile screen-to-data wiring is not evidenced in the excerpts.
Main entry points: pages Feature pages · src/api.ts API client · _layout.tsx Mobile app shell · services/api.ts Mobile API service
Components 29
Web application
- Web app shell
frontend/src/App.tsx - Feature pages
frontend/src/pages - Landing page
frontend/src/pages/landing-v3/LandingV3.tsx
Mobile application
- Mobile app shell
mobile/src/app/_layout.tsx - Mobile dashboard
mobile/src/features/dashboard/DashboardScreen.tsx - Mobile expenses
mobile/src/features/expenses/ExpensesScreen.tsx - Mobile household
mobile/src/features/household/HouseholdScreen.tsx - Mobile API service
mobile/src/services/api.ts
Finance workflows
- Accounts and cards
frontend/src/features/accounts/AccountsPage.tsx - Transactions
frontend/src/features/transactions/AllTransactionsPage.tsx - Installment plans
frontend/src/features/installments/InstallmentsPage.tsx - Plan details
frontend/src/components/installments/InstallmentPlanDrawer.tsx - Plan summary card
frontend/src/components/installments/InstallmentPlanCard.tsx - Plan merchant logo
frontend/src/components/installments/PlanLogo.tsx - Future installments
frontend/src/utils/installments.ts - Household finance
frontend/src/features/household/HouseholdPage.tsx - Household controller
frontend/src/features/household/hooks/useHouseholdPageController.ts
Analysis and planning
- Financial dashboard
frontend/src/features/dashboard/Dashboard.tsx - Dashboard data hook
frontend/src/hooks/useDashboardData.ts - Reports and export
frontend/src/features/reports/ReportsPage.tsx - Budgets and goals
frontend/src/features/planning/PlanningPage.tsx
Shared client services
- Authentication state
frontend/src/contexts/AuthContext.tsx - API client
frontend/src/api.ts - User notifications
frontend/src/services/toast.tsx - Web bootstrap
frontend/src/main.tsx
Other components
- Finance user
- Mobile user
- Finance backend
- PostgreSQL
Connections 35
- Finance user → Landing page: visits
README.md - Finance user → Authentication state: authenticates
README.md - Web bootstrap → Web app shell: renders
frontend/src/main.tsx - Web bootstrap → Authentication state: provides
frontend/src/main.tsx - Web app shell → Feature pages: renders pages
frontend/src/App.tsx - Web app shell → Authentication state: reads session
frontend/src/App.tsx - Authentication state → API client: calls login
frontend/src/contexts/AuthContext.tsx - Feature pages → Financial dashboard: includes
- Feature pages → Accounts and cards: includes
- Feature pages → Transactions: includes
- Financial dashboard → Dashboard data hook: loads data
frontend/src/hooks/useDashboardData.ts - Dashboard data hook → API client: requests data
frontend/src/hooks/useDashboardData.ts - Household finance → Household controller: uses controller
frontend/src/features/household/hooks/useHouseholdPageController.ts - Household controller → API client: loads household
frontend/src/features/household/hooks/useHouseholdPageController.ts - Household controller → User notifications: reports errors
frontend/src/features/household/hooks/useHouseholdPageController.ts - Installment plans → Plan summary card: shows plans
frontend/src/features/installments/InstallmentsPage.tsx - Installment plans → Plan details: opens details
frontend/src/features/installments/InstallmentsPage.tsx - Plan summary card → Plan merchant logo: renders logo
frontend/src/components/installments/InstallmentPlanCard.tsx - Plan details → API client: deletes plan
frontend/src/components/installments/InstallmentPlanDrawer.tsx - Plan details → User notifications: confirms deletion
frontend/src/components/installments/InstallmentPlanDrawer.tsx - Dashboard data hook → Finance backend: requests summaries
frontend/src/hooks/useDashboardData.ts - API client → Finance backend: sends JWT requests
README.md - Finance backend → PostgreSQL: persists data
README.md - Mobile user → Mobile app shell: opens app
- Mobile app shell → Mobile dashboard: routes to
- Mobile app shell → Mobile expenses: routes to
- Mobile app shell → Mobile household: routes to
- Mobile dashboard → Mobile API service: requests data
- Mobile expenses → Mobile API service: requests data
- Mobile household → Mobile API service: requests data
- Mobile API service → Finance backend: calls API
- Feature pages → Reports and export: offers reports
README.md - Feature pages → Budgets and goals: offers planning
README.md - Feature pages → Household finance: offers household
- Installment plans → Future installments: uses calculations
frontend/src/features/installments/InstallmentsPage.tsx