# dinesh8778/budget-tracker architecture

> Architecture diagram of the GitHub repository dinesh8778/budget-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dinesh8778/budget-tracker
- Repository: https://github.com/dinesh8778/budget-tracker

## Overview

Budget Tracker is a Django web app for managing personal finances. Users register or sign in, organize categories, record income and expenses, set category budgets, and review financial totals on a dashboard. EMI schedules can create recurring expense records through request middleware or a scheduled command. The graph follows documented routes and sampled calls; some dashboard and template details are supported only by the README, and the database backend is configurable rather than always SQLite.

Main entry points: [`myapp/views.py`](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py) (Request handlers), [`your_project/settings.py`](https://github.com/dinesh8778/budget-tracker/blob/main/your_project/settings.py) (Django configuration), [`myapp/models.py`](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/models.py) (EMI schedules), [`myapp/urls.py`](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/urls.py) (Page routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflows"]
  node_routes["Page routes<br/>[urls.py]"]
  node_views["Request handlers<br/>[views.py]"]
  node_templates["Page templates"]
end

subgraph group_finance["Financial records"]
  node_categories["Categories<br/>[views.py]"]
  node_income["Income records<br/>[views.py]"]
  node_expenses["Expense records<br/>[views.py]"]
  node_budgets["Budget limits<br/>[views.py]"]
  node_dashboard["Financial dashboard<br/>[views.py]"]
end

subgraph group_recurring["Recurring payments"]
  node_emis["EMI schedules<br/>[models.py]"]
  node_emi_middleware["Request EMI processor<br/>[middleware.py]"]
  node_emi_command["Scheduled EMI processor"]
end

subgraph group_core["Application core"]
  node_forms["Validated forms<br/>[forms.py]"]
  node_models["Domain models<br/>[models.py]"]
  node_user_manager["User manager<br/>[managers.py]"]
  node_settings["Django configuration<br/>[settings.py]"]
  node_database[("Configured database")]
end

node_user(("Account holder"))

node_user -->|"uses pages"| node_routes
node_routes -->|"routes requests"| node_views
node_views -->|"validates input"| node_forms
node_forms -->|"builds forms for"| node_models
node_views -->|"reads and saves"| node_models
node_views -->|"renders pages"| node_templates
node_views -->|"manages"| node_categories
node_views -->|"manages"| node_income
node_views -->|"manages"| node_expenses
node_views -->|"manages"| node_budgets
node_views -->|"serves overview"| node_dashboard
node_views -->|"processes due payments"| node_emis
node_emi_middleware -->|"creates expenses"| node_emis
node_emi_command -->|"processes due"| node_emis
node_settings -->|"configures middleware"| node_emi_middleware
node_settings -->|"schedules command"| node_emi_command
node_user_manager -->|"creates users"| node_models
node_settings -->|"configures connection"| node_database

click node_routes "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/urls.py"
click node_views "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_templates "https://github.com/dinesh8778/budget-tracker/tree/main/templates"
click node_categories "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_income "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_expenses "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_budgets "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_dashboard "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py"
click node_emis "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/models.py"
click node_emi_middleware "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/middleware.py"
click node_emi_command "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/management/commands/process_emi_payments.py"
click node_forms "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/forms.py"
click node_models "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/models.py"
click node_user_manager "https://github.com/dinesh8778/budget-tracker/blob/main/myapp/managers.py"
click node_settings "https://github.com/dinesh8778/budget-tracker/blob/main/your_project/settings.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_routes,node_views,node_templates toneBlue
class node_categories,node_income,node_expenses,node_budgets,node_dashboard toneAmber
class node_emis,node_emi_middleware,node_emi_command toneMint
class node_forms,node_models,node_user_manager,node_settings,node_database toneRose
class node_user toneIndigo
```

## Components

### Web workflows

- [Page routes](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/urls.py): `myapp/urls.py`
- [Request handlers](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`
- [Page templates](https://github.com/dinesh8778/budget-tracker/tree/main/templates): `templates`

### Financial records

- [Categories](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`
- [Income records](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`
- [Expense records](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`
- [Budget limits](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`
- [Financial dashboard](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/views.py): `myapp/views.py`

### Recurring payments

- [EMI schedules](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/models.py): `myapp/models.py`
- [Request EMI processor](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/middleware.py): `myapp/middleware.py`
- [Scheduled EMI processor](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/management/commands/process_emi_payments.py): `myapp/management/commands/process_emi_payments.py`

### Application core

- [Validated forms](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/forms.py): `myapp/forms.py`
- [Domain models](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/models.py): `myapp/models.py`
- [User manager](https://github.com/dinesh8778/budget-tracker/blob/main/myapp/managers.py): `myapp/managers.py`
- [Django configuration](https://github.com/dinesh8778/budget-tracker/blob/main/your_project/settings.py): `your_project/settings.py`
- **Configured database**

### Other components

- **Account holder**

## Connections

- Account holder → Page routes: uses pages (evidence: `README.md`)
- Page routes → Request handlers: routes requests (evidence: `myapp/urls.py`)
- Request handlers → Validated forms: validates input (evidence: `myapp/views.py`)
- Validated forms → Domain models: builds forms for (evidence: `myapp/forms.py`)
- Request handlers → Domain models: reads and saves (evidence: `myapp/views.py`)
- Request handlers → Page templates: renders pages (evidence: `myapp/views.py`)
- Request handlers → Categories: manages (evidence: `myapp/urls.py`)
- Request handlers → Income records: manages (evidence: `myapp/urls.py`)
- Request handlers → Expense records: manages (evidence: `myapp/urls.py`)
- Request handlers → Budget limits: manages (evidence: `myapp/urls.py`)
- Request handlers → Financial dashboard: serves overview (evidence: `myapp/urls.py`)
- Request handlers → EMI schedules: processes due payments (evidence: `myapp/views.py`)
- Request EMI processor → EMI schedules: creates expenses (evidence: `myapp/middleware.py`)
- Scheduled EMI processor → EMI schedules: processes due (evidence: `myapp/management/commands/process_emi_payments.py`)
- Django configuration → Request EMI processor: configures middleware (evidence: `your_project/settings.py`)
- Django configuration → Scheduled EMI processor: schedules command (evidence: `your_project/settings.py`)
- User manager → Domain models: creates users (evidence: `myapp/models.py`)
- Django configuration → Configured database: configures connection (evidence: `your_project/settings.py`)
