# t-mmyyy/mvcrepo architecture

> Architecture diagram of the GitHub repository t-mmyyy/mvcrepo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/t-mmyyy/mvcrepo
- Repository: https://github.com/t-mmyyy/mvcrepo

## Overview

This is a small ASP.NET Core MVC starter application. A browser request enters the configured web pipeline, is routed to a HomeController action, and receives a view; the Error action also supplies request-ID data to its view. The app serves static web assets as well. The excerpts show the route setup and controller behavior, but do not show the Razor view contents, so view links reflect MVC’s action/view convention rather than inspected view code. No README describes additional product capabilities.

Main entry points: [`MVC/Controllers/HomeController.cs`](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Controllers/HomeController.cs) (Home actions), [`MVC/Program.cs`](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Program.cs) (App startup), [`MVC/wwwroot`](https://github.com/t-mmyyy/mvcrepo/tree/master/MVC/wwwroot) (Static assets), [`MVC/Views/Home/Index.cshtml`](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Home/Index.cshtml) (Index view)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Web runtime"]
  node_program["App startup<br/>[Program.cs]"]
end

subgraph group_presentation["MVC presentation"]
  node_static["Static assets"]
  node_home["Home actions<br/>[HomeController.cs]"]
  node_index["Index view<br/>[Index.cshtml]"]
  node_privacy["Privacy view<br/>[Privacy.cshtml]"]
  node_error["Error view<br/>[Error.cshtml]"]
end

subgraph group_model["View model"]
  node_errorvm["Error request data<br/>[ErrorViewModel.cs]"]
end

node_browser(("Browser"))

node_browser -->|"sends requests"| node_program
node_program -->|"routes requests"| node_home
node_program -->|"maps assets"| node_static
node_home -->|"renders view"| node_index
node_home -->|"renders view"| node_privacy
node_home -->|"renders view"| node_error
node_home -->|"creates model"| node_errorvm

click node_program "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Program.cs"
click node_static "https://github.com/t-mmyyy/mvcrepo/tree/master/MVC/wwwroot"
click node_home "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Controllers/HomeController.cs"
click node_index "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Home/Index.cshtml"
click node_privacy "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Home/Privacy.cshtml"
click node_error "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Shared/Error.cshtml"
click node_errorvm "https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Models/ErrorViewModel.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_program,node_browser toneBlue
class node_static,node_home,node_index,node_privacy,node_error toneAmber
class node_errorvm toneMint
```

## Components

### Web runtime

- [App startup](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Program.cs): `MVC/Program.cs`

### MVC presentation

- [Static assets](https://github.com/t-mmyyy/mvcrepo/tree/master/MVC/wwwroot): `MVC/wwwroot`
- [Home actions](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Controllers/HomeController.cs): `MVC/Controllers/HomeController.cs`
- [Index view](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Home/Index.cshtml): `MVC/Views/Home/Index.cshtml`
- [Privacy view](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Home/Privacy.cshtml): `MVC/Views/Home/Privacy.cshtml`
- [Error view](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Views/Shared/Error.cshtml): `MVC/Views/Shared/Error.cshtml`

### View model

- [Error request data](https://github.com/t-mmyyy/mvcrepo/blob/master/MVC/Models/ErrorViewModel.cs): `MVC/Models/ErrorViewModel.cs`

### Other components

- **Browser**

## Connections

- Browser → App startup: sends requests
- App startup → Home actions: routes requests (evidence: `MVC/Program.cs`)
- App startup → Static assets: maps assets (evidence: `MVC/Program.cs`)
- Home actions → Index view: renders view (evidence: `MVC/Controllers/HomeController.cs`)
- Home actions → Privacy view: renders view (evidence: `MVC/Controllers/HomeController.cs`)
- Home actions → Error view: renders view (evidence: `MVC/Controllers/HomeController.cs`)
- Home actions → Error request data: creates model (evidence: `MVC/Controllers/HomeController.cs`)
