# mrklstrzip/personalwebsite architecture

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

- Interactive diagram: https://gitdiagram.com/mrklstrzip/personalwebsite
- Repository: https://github.com/mrklstrzip/personalwebsite

## Overview

This is an ASP.NET MVC personal-profile website with account registration and login, user-managed personal information and portfolio entries, and administrator account management and reporting. The principal workflow is to authenticate, view or edit a profile and its education, hobbies, and skills, then persist changes through stored procedures; administrators can also manage users and inspect statistics. The graph separates MVC actions, authorization, persistence, and image handling. The README is empty, so capability coverage is based on the supplied tree and excerpts; some view and script wiring is not shown.

Main entry points: [`Controllers/AdminController.cs`](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AdminController.cs) (Admin actions), [`Controllers/AccountController.cs`](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AccountController.cs) (Account actions), [`Helpers/DBHelper.cs`](https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/DBHelper.cs) (Database access), [`Controllers/UserController.cs`](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/UserController.cs) (Profile actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_account["Accounts"]
  node_account_actions["Account actions"]
  node_auth["Authorization"]
end

subgraph group_profiles["Profiles"]
  node_user_actions["Profile actions<br/>[UserController.cs]"]
  node_profile_views["Profile views"]
end

subgraph group_admin["Administration"]
  node_admin_actions["Admin actions<br/>[AdminController.cs]"]
  node_admin_views["Admin views"]
  node_report_charts["Report charts<br/>[admin-reports.js]"]
end

subgraph group_services["Runtime services"]
  node_db_helper["Database access<br/>[DBHelper.cs]"]
  node_sql_store[("SQL database")]
  node_image_helper["Image handling<br/>[ImageHelper.cs]"]
  node_image_files["Image files"]
  node_route_config["MVC routes<br/>[RouteConfig.cs]"]
end

subgraph group_presentation["Presentation"]
  node_view_models["View models<br/>[ViewModels.cs]"]
  node_account_views["Account views"]
  node_shared_views["Shared layout"]
  node_form_confirm["Form confirmation<br/>[site.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"submits credentials"| node_account_actions
node_account_actions -->|"checks or creates accounts"| node_db_helper
node_auth -->|"checks active user"| node_db_helper
node_user_actions -->|"loads and saves data"| node_db_helper
node_user_actions -->|"manages pictures"| node_image_helper
node_admin_actions -->|"manages users and reports"| node_db_helper
node_admin_actions -->|"deletes user pictures"| node_image_helper
node_db_helper -->|"executes procedures"| node_sql_store
node_image_helper -->|"writes or deletes"| node_image_files
node_visitor -.->|"requests page"| node_route_config
node_route_config -->|"defaults to login"| node_account_actions
node_user_actions -.->|"renders profile pages"| node_profile_views
node_admin_actions -.->|"renders admin pages"| node_admin_views
node_account_actions -.->|"renders account pages"| node_account_views
node_admin_actions -.->|"supplies chart data"| node_report_charts
node_account_actions -->|"binds account models"| node_view_models
node_user_actions -->|"binds profile models"| node_view_models
node_admin_actions -->|"binds admin models"| node_view_models

click node_account_actions "https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AccountController.cs"
click node_auth "https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/MvcAuthorization.cs"
click node_user_actions "https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/UserController.cs"
click node_profile_views "https://github.com/mrklstrzip/personalwebsite/tree/master/Views/User"
click node_admin_actions "https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AdminController.cs"
click node_admin_views "https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Admin"
click node_report_charts "https://github.com/mrklstrzip/personalwebsite/blob/master/Scripts/admin-reports.js"
click node_view_models "https://github.com/mrklstrzip/personalwebsite/blob/master/Models/ViewModels.cs"
click node_account_views "https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Account"
click node_shared_views "https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Shared"
click node_form_confirm "https://github.com/mrklstrzip/personalwebsite/blob/master/Scripts/site.js"
click node_db_helper "https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/DBHelper.cs"
click node_image_helper "https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/ImageHelper.cs"
click node_image_files "https://github.com/mrklstrzip/personalwebsite/tree/master/Images"
click node_route_config "https://github.com/mrklstrzip/personalwebsite/blob/master/RouteConfig.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_account_actions,node_auth toneBlue
class node_user_actions,node_profile_views toneAmber
class node_admin_actions,node_admin_views,node_report_charts toneMint
class node_db_helper,node_sql_store,node_image_helper,node_image_files,node_route_config toneRose
class node_view_models,node_account_views,node_shared_views,node_form_confirm,node_visitor toneIndigo
```

## Components

### Accounts

- [Account actions](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AccountController.cs): `Controllers/AccountController.cs`
- [Authorization](https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/MvcAuthorization.cs): `Helpers/MvcAuthorization.cs`

### Profiles

- [Profile actions](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/UserController.cs): `Controllers/UserController.cs`
- [Profile views](https://github.com/mrklstrzip/personalwebsite/tree/master/Views/User): `Views/User`

### Administration

- [Admin actions](https://github.com/mrklstrzip/personalwebsite/blob/master/Controllers/AdminController.cs): `Controllers/AdminController.cs`
- [Admin views](https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Admin): `Views/Admin`
- [Report charts](https://github.com/mrklstrzip/personalwebsite/blob/master/Scripts/admin-reports.js): `Scripts/admin-reports.js`

### Runtime services

- [Database access](https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/DBHelper.cs): `Helpers/DBHelper.cs`
- **SQL database**
- [Image handling](https://github.com/mrklstrzip/personalwebsite/blob/master/Helpers/ImageHelper.cs): `Helpers/ImageHelper.cs`
- [Image files](https://github.com/mrklstrzip/personalwebsite/tree/master/Images): `Images`
- [MVC routes](https://github.com/mrklstrzip/personalwebsite/blob/master/RouteConfig.cs): `RouteConfig.cs`

### Presentation

- [View models](https://github.com/mrklstrzip/personalwebsite/blob/master/Models/ViewModels.cs): `Models/ViewModels.cs`
- [Account views](https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Account): `Views/Account`
- [Shared layout](https://github.com/mrklstrzip/personalwebsite/tree/master/Views/Shared): `Views/Shared`
- [Form confirmation](https://github.com/mrklstrzip/personalwebsite/blob/master/Scripts/site.js): `Scripts/site.js`

### Other components

- **Visitor**

## Connections

- Visitor → Account actions: submits credentials (evidence: `Controllers/AccountController.cs`)
- Account actions → Database access: checks or creates accounts (evidence: `Controllers/AccountController.cs`)
- Authorization → Database access: checks active user (evidence: `Helpers/MvcAuthorization.cs`)
- Profile actions → Database access: loads and saves data (evidence: `Controllers/UserController.cs`)
- Profile actions → Image handling: manages pictures (evidence: `Controllers/UserController.cs`)
- Admin actions → Database access: manages users and reports (evidence: `Controllers/AdminController.cs`)
- Admin actions → Image handling: deletes user pictures (evidence: `Controllers/AdminController.cs`)
- Database access → SQL database: executes procedures (evidence: `Helpers/DBHelper.cs`)
- Image handling → Image files: writes or deletes (evidence: `Helpers/ImageHelper.cs`)
- Visitor → MVC routes: requests page
- MVC routes → Account actions: defaults to login (evidence: `RouteConfig.cs`)
- Profile actions → Profile views: renders profile pages
- Admin actions → Admin views: renders admin pages
- Account actions → Account views: renders account pages
- Admin actions → Report charts: supplies chart data
- Account actions → View models: binds account models (evidence: `Controllers/AccountController.cs`)
- Profile actions → View models: binds profile models (evidence: `Controllers/UserController.cs`)
- Admin actions → View models: binds admin models (evidence: `Controllers/AdminController.cs`)
