How adi-pandit/expensetracker works
Ledgerly is a full-stack expense tracker. Users authenticate, record and organize expenses across accounts and currencies, then review dashboard analytics and notifications; they can also manage recurring expenses, budgets and exports. The React app routes these workflows through API clients to Django endpoints, with PostgreSQL-backed domain models. The graph preserves README capabilities and core modules; for unsampled routes and services, links are limited to explicit README statements or marked unverified where appropriate.
Main entry points: client.js HTTP client · urls.py Django API · services.py Expense services · models.py Expense domain records
Components 24
Web application
- Route and shell
frontend/src/App.jsx - Session context
frontend/src/context/AuthContext.jsx - Auth API client
frontend/src/api/auth.js - HTTP client
frontend/src/api/client.js - Dashboard
frontend/src/pages/Dashboard.jsx - Expense management
frontend/src/pages/Expenses.jsx - Account management
frontend/src/pages/Accounts.jsx - Recurring expenses
frontend/src/pages/Recurring.jsx - Notifications
frontend/src/pages/Notifications.jsx - Profile settings
frontend/src/pages/Settings.jsx - Expense editor
frontend/src/components/modals/ExpenseModal.jsx - Recurring editor
frontend/src/components/modals/RecurringModal.jsx
API and identity
- Authentication endpoints
backend/authentication/views.py - Authentication serializers
backend/authentication/serializers.py - Expense API
backend/expense/views.py - Dashboard API
backend/overview/views.py - Django API
backend/ExpenseTracker/urls.py
Expense domain
- Expense domain records
backend/expense/models.py - Expense services
backend/expense/services.py - Currency conversion
backend/expense/currency.py
Analytics and alerts
- Analytics services
backend/overview/services.py - Notification generator
backend/expense/management/commands/generate_notifications.py
Other components
- Expense tracker user
- PostgreSQL
Connections 26
- Expense tracker user → Route and shell: uses
frontend/src/App.jsx - Route and shell → Session context: checks session
frontend/src/App.jsx - Session context → Auth API client: loads profile
frontend/src/context/AuthContext.jsx - Auth API client → HTTP client: sends requests
frontend/src/api/auth.js - Dashboard → HTTP client: requests data
- Expense management → HTTP client: requests expenses
- Account management → HTTP client: requests accounts
- Recurring expenses → HTTP client: requests schedules
- Notifications → HTTP client: requests alerts
- Profile settings → Auth API client: updates profile
frontend/src/pages/Settings.jsx - Expense management → Expense editor: opens editor
frontend/src/pages/Expenses.jsx - Dashboard → Expense editor: opens editor
frontend/src/pages/Dashboard.jsx - Recurring expenses → Recurring editor: opens editor
frontend/src/pages/Recurring.jsx - HTTP client → Django API: calls API
README.md - Django API → Authentication endpoints: routes auth
backend/ExpenseTracker/urls.py - Django API → Expense API: routes expenses
- Django API → Dashboard API: routes dashboard
- Authentication endpoints → Authentication serializers: validates data
backend/authentication/views.py - Expense API → Expense services: uses services
- Expense API → Expense domain records: reads and writes
- Expense services → Expense domain records: reads and writes
backend/expense/services.py - Expense services → Currency conversion: converts amounts
backend/expense/services.py - Dashboard API → Analytics services: builds insights
backend/overview/views.py - Analytics services → Expense domain records: queries expenses
backend/overview/services.py - Notification generator → Expense services: generates alerts
backend/expense/management/commands/generate_notifications.py - Expense domain records → PostgreSQL: persists records