How subhansahebshaik/personal-finance-tracker works
This is a personal-finance tracker: users authenticate, review yearly income/expense summaries, browse transactions by month and category, and create, edit, relate, or delete transaction records. The React client calls a Django REST backend, whose views serialize transaction data backed by Django models. The sampled source shows the dashboard and transaction-detail flows and shared API/auth behavior; backend routing and several endpoint implementations were not excerpted, so those relationships are shown only where supported by the source index or explicit API calls.
Main entry points: App.js Application routes · DashboardPage.jsx Year dashboard · TransactionDetailsPage.jsx Transaction details · api.js API client
Components 16
Web client
- Application routes
frontend/src/App.js - Authentication state
frontend/src/auth/AuthContext.jsx - Login dialog
frontend/src/components/LoginModal.jsx - API client
frontend/src/api.js - Page shell
frontend/src/components/AppShell.jsx - Loading and empty states
frontend/src/components/StateMessage.jsx
Transaction workflows
- Year dashboard
frontend/src/pages/DashboardPage.jsx - Category transactions
frontend/src/pages/TransactionsPage.jsx - Transaction details
frontend/src/pages/TransactionDetailsPage.jsx - Transaction editor
frontend/src/components/AddTransactionModal.jsx - Finance formatting
frontend/src/utils/finance.js
Backend API
- Finance API endpoints
backend/financeApp/views.py - Transaction serialization
backend/financeApp/serializers.py
Persistence
- Transaction model
backend/financeApp/models.py - Django database
Other components
- Finance user
Connections 28
- Finance user → Application routes: uses
frontend/src/App.js - Application routes → Year dashboard: routes to
frontend/src/App.js - Application routes → Category transactions: routes to
frontend/src/App.js - Application routes → Transaction details: routes to
frontend/src/App.js - Application routes → Authentication state: provides auth
frontend/src/App.js - Application routes → Login dialog: renders
frontend/src/App.js - Login dialog → Authentication state: uses
frontend/src/components/LoginModal.jsx - Authentication state → API client: authenticates through
frontend/src/auth/AuthContext.jsx - Year dashboard → API client: loads summaries
frontend/src/pages/DashboardPage.jsx - Category transactions → API client: loads entries
frontend/src/pages/TransactionsPage.jsx - Transaction details → API client: reads and updates
frontend/src/pages/TransactionDetailsPage.jsx - Year dashboard → Transaction editor: opens
frontend/src/pages/DashboardPage.jsx - Transaction details → Transaction editor: edits through
frontend/src/pages/TransactionDetailsPage.jsx - Year dashboard → Finance formatting: formats totals
frontend/src/pages/DashboardPage.jsx - Category transactions → Finance formatting: formats totals
frontend/src/pages/TransactionsPage.jsx - Transaction details → Finance formatting: formats details
frontend/src/pages/TransactionDetailsPage.jsx - Year dashboard → Page shell: renders within
frontend/src/pages/DashboardPage.jsx - Category transactions → Page shell: renders within
frontend/src/pages/TransactionsPage.jsx - Transaction details → Page shell: renders within
frontend/src/pages/TransactionDetailsPage.jsx - Year dashboard → Loading and empty states: shows status
frontend/src/pages/DashboardPage.jsx - Category transactions → Loading and empty states: shows status
frontend/src/pages/TransactionsPage.jsx - Transaction details → Loading and empty states: shows status
frontend/src/pages/TransactionDetailsPage.jsx - Transaction editor → API client: creates and updates
frontend/src/components/AddTransactionModal.jsx - API client → Finance API endpoints: sends HTTP requests
frontend/src/api.js - Finance API endpoints → Transaction serialization: serializes records
backend/financeApp/views.py - Finance API endpoints → Transaction model: queries and changes
backend/financeApp/views.py - Transaction serialization → Transaction model: serializes model
backend/financeApp/serializers.py - Transaction model → Django database: persists through