# durgaprasad02g/my_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/durgaprasad02g/my_portfolio
- Repository: https://github.com/durgaprasad02g/my_portfolio

## Overview

This ASP.NET Core MVC portfolio serves a visitor a single portfolio page: the default route dispatches to HomeController, which builds profile content and passes a view model to the home view. The view model organizes skills, experience, projects, and education; the browser script adds navigation, reveal, typing, and cursor interactions. The view files were not excerpted, so their internal rendering relationships are not detailed.

Main entry points: [`Controllers/HomeController.cs`](https://github.com/durgaprasad02g/my_portfolio/blob/main/Controllers/HomeController.cs) (Home Controller), [`ViewModels/HomeViewModel.cs`](https://github.com/durgaprasad02g/my_portfolio/blob/main/ViewModels/HomeViewModel.cs) (Home View Model), [`Views/Home/Index.cshtml`](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Home/Index.cshtml) (Home Page), [`Views/Shared/_Layout.cshtml`](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Layout.cshtml) (Shared Layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Request Routing"]
  node_app["MVC Application<br/>[Program.cs]"]
  node_home["Home Controller<br/>[HomeController.cs]"]
end

subgraph group_content["Portfolio Content"]
  node_viewmodel["Home View Model<br/>[HomeViewModel.cs]"]
  node_skills["Skill Data<br/>[Skill.cs]"]
  node_experience["Experience Data<br/>[Experience.cs]"]
  node_projects["Project Data<br/>[Project.cs]"]
  node_education["Education Data<br/>[Education.cs]"]
end

subgraph group_presentation["Page Presentation"]
  node_homeview["Home Page<br/>[Index.cshtml]"]
  node_hero["Hero Partial<br/>[_Hero.cshtml]"]
  node_layout["Shared Layout<br/>[_Layout.cshtml]"]
  node_navbar["Navigation Partial<br/>[_Navbar.cshtml]"]
  node_footer["Footer Partial<br/>[_Footer.cshtml]"]
end

subgraph group_browser["Browser Interactions"]
  node_script["UI Interactions<br/>[site.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests page"| node_app
node_app -->|"routes to"| node_home
node_home -->|"builds"| node_viewmodel
node_home -->|"creates"| node_skills
node_home -->|"creates"| node_experience
node_home -->|"creates"| node_projects
node_home -->|"creates"| node_education
node_viewmodel -->|"types list"| node_skills
node_viewmodel -->|"types list"| node_experience
node_viewmodel -->|"types list"| node_projects
node_viewmodel -->|"types list"| node_education
node_home -->|"returns view"| node_homeview
node_homeview -.-> node_hero
node_homeview -.-> node_layout
node_layout -.-> node_navbar
node_layout -.-> node_footer
node_homeview -.->|"uses interactions"| node_script

click node_app "https://github.com/durgaprasad02g/my_portfolio/blob/main/Program.cs"
click node_home "https://github.com/durgaprasad02g/my_portfolio/blob/main/Controllers/HomeController.cs"
click node_viewmodel "https://github.com/durgaprasad02g/my_portfolio/blob/main/ViewModels/HomeViewModel.cs"
click node_skills "https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Skill.cs"
click node_experience "https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Experience.cs"
click node_projects "https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Project.cs"
click node_education "https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Education.cs"
click node_homeview "https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Home/Index.cshtml"
click node_hero "https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Home/_Hero.cshtml"
click node_layout "https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Layout.cshtml"
click node_navbar "https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Navbar.cshtml"
click node_footer "https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Footer.cshtml"
click node_script "https://github.com/durgaprasad02g/my_portfolio/blob/main/wwwroot/js/site.js"

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_app,node_home toneBlue
class node_viewmodel,node_skills,node_experience,node_projects,node_education toneAmber
class node_homeview,node_hero,node_layout,node_navbar,node_footer toneMint
class node_script toneRose
class node_visitor toneIndigo
```

## Components

### Request Routing

- [MVC Application](https://github.com/durgaprasad02g/my_portfolio/blob/main/Program.cs): `Program.cs`
- [Home Controller](https://github.com/durgaprasad02g/my_portfolio/blob/main/Controllers/HomeController.cs): `Controllers/HomeController.cs`

### Portfolio Content

- [Home View Model](https://github.com/durgaprasad02g/my_portfolio/blob/main/ViewModels/HomeViewModel.cs): `ViewModels/HomeViewModel.cs`
- [Skill Data](https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Skill.cs): `Models/Skill.cs`
- [Experience Data](https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Experience.cs): `Models/Experience.cs`
- [Project Data](https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Project.cs): `Models/Project.cs`
- [Education Data](https://github.com/durgaprasad02g/my_portfolio/blob/main/Models/Education.cs): `Models/Education.cs`

### Page Presentation

- [Home Page](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Home/Index.cshtml): `Views/Home/Index.cshtml`
- [Hero Partial](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Home/_Hero.cshtml): `Views/Home/_Hero.cshtml`
- [Shared Layout](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Layout.cshtml): `Views/Shared/_Layout.cshtml`
- [Navigation Partial](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Navbar.cshtml): `Views/Shared/_Navbar.cshtml`
- [Footer Partial](https://github.com/durgaprasad02g/my_portfolio/blob/main/Views/Shared/_Footer.cshtml): `Views/Shared/_Footer.cshtml`

### Browser Interactions

- [UI Interactions](https://github.com/durgaprasad02g/my_portfolio/blob/main/wwwroot/js/site.js): `wwwroot/js/site.js`

### Other components

- **Visitor**

## Connections

- Visitor → MVC Application: requests page
- MVC Application → Home Controller: routes to (evidence: `Program.cs`)
- Home Controller → Home View Model: builds (evidence: `Controllers/HomeController.cs`)
- Home Controller → Skill Data: creates (evidence: `Controllers/HomeController.cs`)
- Home Controller → Experience Data: creates (evidence: `Controllers/HomeController.cs`)
- Home Controller → Project Data: creates (evidence: `Controllers/HomeController.cs`)
- Home Controller → Education Data: creates (evidence: `Controllers/HomeController.cs`)
- Home View Model → Skill Data: types list (evidence: `ViewModels/HomeViewModel.cs`)
- Home View Model → Experience Data: types list (evidence: `ViewModels/HomeViewModel.cs`)
- Home View Model → Project Data: types list (evidence: `ViewModels/HomeViewModel.cs`)
- Home View Model → Education Data: types list (evidence: `ViewModels/HomeViewModel.cs`)
- Home Controller → Home Page: returns view (evidence: `Controllers/HomeController.cs`)
- Home Page → Hero Partial
- Home Page → Shared Layout
- Shared Layout → Navigation Partial
- Shared Layout → Footer Partial
- Home Page → UI Interactions: uses interactions
