# keroaziz12/subscription-amp-bill-radar architecture

> Architecture diagram of the GitHub repository keroaziz12/subscription-amp-bill-radar, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keroaziz12/subscription-amp-bill-radar
- Repository: https://github.com/keroaziz12/subscription-amp-bill-radar

## Overview

Subscription & Bill Radar is an ASP.NET Core MVC app for tracking recurring bills and subscriptions. Users open the default dashboard to review subscriptions, active counts, estimated monthly cost, and the next due item; they can add, activate/deactivate, and delete entries, and filter by status. The controller coordinates dashboard calculations and persistence through EF Core, with SQL Server as the store. The README documents filtering and dashboard capabilities beyond the sampled controller excerpt; unsampled Razor view wiring is therefore kept conservative.

Main entry points: [`Program.cs`](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Program.cs) (App startup), [`Controllers/SupScriptionsController.cs`](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Controllers/SupScriptionsController.cs) (Subscription actions), [`Date/AppDbcontext.cs`](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Date/AppDbcontext.cs) (EF context), [`ViewModels/DashboardViewModel.cs`](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/ViewModels/DashboardViewModel.cs) (Dashboard data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web workflow"]
  node_startup["App startup<br/>[Program.cs]"]
  node_subscription_controller["Subscription actions"]
  node_dashboard_view["Dashboard page<br/>[index.cshtml]"]
  node_home_controller["Home actions<br/>[HomeController.cs]"]
end

subgraph group_domain["Subscription domain"]
  node_error_view_model["Error details<br/>[ErrorViewModel.cs]"]
  node_dashboard_model["Dashboard data"]
  node_subscription["Subscription record<br/>[SubScriptitem.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db_context["EF context<br/>[AppDbcontext.cs]"]
  node_sql_server[("SQL Server")]
end

node_user(("Visitor"))

node_user -->|"opens app"| node_startup
node_startup -->|"routes requests"| node_subscription_controller
node_startup -->|"registers and migrates"| node_db_context
node_subscription_controller -->|"queries and saves"| node_db_context
node_subscription_controller -->|"builds dashboard"| node_dashboard_model
node_subscription_controller -->|"renders view"| node_dashboard_view
node_dashboard_model -->|"holds entries"| node_subscription
node_db_context -->|"maps records"| node_subscription
node_startup -->|"configures connection"| node_sql_server
node_home_controller -->|"creates error data"| node_error_view_model

click node_startup "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Program.cs"
click node_subscription_controller "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Controllers/SupScriptionsController.cs"
click node_dashboard_view "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Views/SupScriptions/index.cshtml"
click node_home_controller "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Controllers/HomeController.cs"
click node_error_view_model "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Models/ErrorViewModel.cs"
click node_dashboard_model "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/ViewModels/DashboardViewModel.cs"
click node_subscription "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Models/SubScriptitem.cs"
click node_db_context "https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Date/AppDbcontext.cs"

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_startup,node_subscription_controller,node_dashboard_view,node_home_controller toneBlue
class node_error_view_model,node_dashboard_model,node_subscription toneAmber
class node_db_context,node_sql_server toneMint
class node_user toneIndigo
```

## Components

### Web workflow

- [App startup](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Program.cs): `Program.cs`
- [Subscription actions](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Controllers/SupScriptionsController.cs): `Controllers/SupScriptionsController.cs`
- [Dashboard page](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Views/SupScriptions/index.cshtml): `Views/SupScriptions/index.cshtml`
- [Home actions](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Controllers/HomeController.cs): `Controllers/HomeController.cs`

### Subscription domain

- [Error details](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Models/ErrorViewModel.cs): `Models/ErrorViewModel.cs`
- [Dashboard data](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/ViewModels/DashboardViewModel.cs): `ViewModels/DashboardViewModel.cs`
- [Subscription record](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Models/SubScriptitem.cs): `Models/SubScriptitem.cs`

### Persistence

- [EF context](https://github.com/keroaziz12/subscription-amp-bill-radar/blob/master/Date/AppDbcontext.cs): `Date/AppDbcontext.cs`
- **SQL Server**

### Other components

- **Visitor**

## Connections

- Visitor → App startup: opens app (evidence: `Program.cs`)
- App startup → Subscription actions: routes requests (evidence: `Program.cs`)
- App startup → EF context: registers and migrates (evidence: `Program.cs`)
- Subscription actions → EF context: queries and saves (evidence: `Controllers/SupScriptionsController.cs`)
- Subscription actions → Dashboard data: builds dashboard (evidence: `Controllers/SupScriptionsController.cs`)
- Subscription actions → Dashboard page: renders view (evidence: `Controllers/SupScriptionsController.cs`)
- Dashboard data → Subscription record: holds entries (evidence: `ViewModels/DashboardViewModel.cs`)
- EF context → Subscription record: maps records (evidence: `Date/AppDbcontext.cs`)
- App startup → SQL Server: configures connection (evidence: `Program.cs`)
- Home actions → Error details: creates error data (evidence: `Controllers/HomeController.cs`)
