# hilalnurtinas/hurdaci-website architecture

> Architecture diagram of the GitHub repository hilalnurtinas/hurdaci-website, 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/hilalnurtinas/hurdaci-website
- Repository: https://github.com/hilalnurtinas/hurdaci-website

## Overview

Hurdacı is an ASP.NET Core site for a scrap-metal business, with public business content and administrative content-management screens. Visitors browse dynamically supplied site content; administrators have feature and scrap editing screens, while login and password-reset screens support access management. Sampled view components read content through Entity Framework, and the footer assembles contact and scrap data. The README also describes a project showcase and contact form, but their handling is not shown in sampled source, so those links are not inferred.

Main entry points: [`WebApplication1/DAL/Context/HurdaciContext.cs`](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/DAL/Context/HurdaciContext.cs) (EF Context), [`WebApplication1/ViewComponents/_FooterComponentPartial.cs`](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_FooterComponentPartial.cs) (Footer Content), [`WebApplication1/Pages/Index.cshtml`](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Pages/Index.cshtml) (Public Pages), [`WebApplication1/ViewComponents/_AboutComponentPartial.cs`](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_AboutComponentPartial.cs) (About Content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Website"]
  node_public_pages["Public Pages<br/>[Index.cshtml]"]
  node_about_component["About Content"]
  node_carousel_component["Feature Carousel"]
  node_feature_component["Feature Content"]
  node_scraps_component["Scrap Showcase"]
  node_footer_component["Footer Content"]
  node_contact_form["Contact Form"]
  node_project_showcase["Project Showcase"]
end

subgraph group_admin["Administration"]
  node_admin_screens["Content Management"]
  node_login_screens["Login and Reset"]
end

subgraph group_domain["Domain and Data"]
  node_context["EF Context<br/>[HurdaciContext.cs]"]
  node_entities["Content Entities"]
  node_footer_model["Footer View Model<br/>[FooterViewModel.cs]"]
  node_database[("SQL Database")]
end

subgraph group_services["Application Services"]
  node_controller["Default Controller"]
  node_email_sender["Email Sender<br/>[EmailSender .cs]"]
  node_password_helper["Password Helper<br/>[PasswordHelper.cs]"]
end

node_visitor(("Visitor"))
node_admin_actor(("Administrator"))

node_visitor -->|"browses"| node_public_pages
node_visitor -->|"submits message"| node_contact_form
node_public_pages -->|"presents projects"| node_project_showcase
node_admin_actor -->|"manages content"| node_admin_screens
node_admin_actor -->|"authenticates"| node_login_screens
node_controller -->|"creates"| node_context
node_about_component -->|"reads about data"| node_context
node_carousel_component -->|"reads features"| node_context
node_feature_component -->|"reads features"| node_context
node_scraps_component -->|"loads scraps"| node_context
node_footer_component -->|"loads footer data"| node_context
node_footer_component -->|"creates model"| node_footer_model
node_context -->|"maps entities"| node_entities
node_context -->|"configures SQL"| node_database

click node_public_pages "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Pages/Index.cshtml"
click node_about_component "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_AboutComponentPartial.cs"
click node_carousel_component "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_CarouselComponentPartial.cs"
click node_feature_component "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_FeatureComponentPartial.cs"
click node_scraps_component "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_ScrapsComponentPartial.cs"
click node_footer_component "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_FooterComponentPartial.cs"
click node_contact_form "https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Pages"
click node_project_showcase "https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views"
click node_admin_screens "https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views"
click node_login_screens "https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views/Login"
click node_controller "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Controllers/DefaultController.cs"
click node_email_sender "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Utilities/EmailSender%20.cs"
click node_password_helper "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Utilities/PasswordHelper.cs"
click node_context "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/DAL/Context/HurdaciContext.cs"
click node_entities "https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/DAL/Entities"
click node_footer_model "https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/DAL/ViewModel/FooterViewModel.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_public_pages,node_about_component,node_carousel_component,node_feature_component,node_scraps_component,node_footer_component,node_contact_form,node_project_showcase toneBlue
class node_admin_screens,node_login_screens toneAmber
class node_context,node_entities,node_footer_model,node_database toneMint
class node_controller,node_email_sender,node_password_helper toneRose
class node_visitor,node_admin_actor toneIndigo
```

## Components

### Public Website

- [Public Pages](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Pages/Index.cshtml): `WebApplication1/Pages/Index.cshtml`
- [About Content](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_AboutComponentPartial.cs): `WebApplication1/ViewComponents/_AboutComponentPartial.cs`
- [Feature Carousel](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_CarouselComponentPartial.cs): `WebApplication1/ViewComponents/_CarouselComponentPartial.cs`
- [Feature Content](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_FeatureComponentPartial.cs): `WebApplication1/ViewComponents/_FeatureComponentPartial.cs`
- [Scrap Showcase](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_ScrapsComponentPartial.cs): `WebApplication1/ViewComponents/_ScrapsComponentPartial.cs`
- [Footer Content](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/ViewComponents/_FooterComponentPartial.cs): `WebApplication1/ViewComponents/_FooterComponentPartial.cs`
- [Contact Form](https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Pages): `WebApplication1/Pages`
- [Project Showcase](https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views): `WebApplication1/Views`

### Administration

- [Content Management](https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views): `WebApplication1/Views`
- [Login and Reset](https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/Views/Login): `WebApplication1/Views/Login`

### Domain and Data

- [EF Context](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/DAL/Context/HurdaciContext.cs): `WebApplication1/DAL/Context/HurdaciContext.cs`
- [Content Entities](https://github.com/hilalnurtinas/hurdaci-website/tree/master/WebApplication1/DAL/Entities): `WebApplication1/DAL/Entities`
- [Footer View Model](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/DAL/ViewModel/FooterViewModel.cs): `WebApplication1/DAL/ViewModel/FooterViewModel.cs`
- **SQL Database**

### Application Services

- [Default Controller](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Controllers/DefaultController.cs): `WebApplication1/Controllers/DefaultController.cs`
- [Email Sender](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Utilities/EmailSender%20.cs): `WebApplication1/Utilities/EmailSender .cs`
- [Password Helper](https://github.com/hilalnurtinas/hurdaci-website/blob/master/WebApplication1/Utilities/PasswordHelper.cs): `WebApplication1/Utilities/PasswordHelper.cs`

### Other components

- **Visitor**
- **Administrator**

## Connections

- Visitor → Public Pages: browses (evidence: `README.md`)
- Visitor → Contact Form: submits message (evidence: `README.md`)
- Public Pages → Project Showcase: presents projects (evidence: `README.md`)
- Administrator → Content Management: manages content (evidence: `README.md`)
- Administrator → Login and Reset: authenticates
- Default Controller → EF Context: creates (evidence: `WebApplication1/Controllers/DefaultController.cs`)
- About Content → EF Context: reads about data (evidence: `WebApplication1/ViewComponents/_AboutComponentPartial.cs`)
- Feature Carousel → EF Context: reads features (evidence: `WebApplication1/ViewComponents/_CarouselComponentPartial.cs`)
- Feature Content → EF Context: reads features (evidence: `WebApplication1/ViewComponents/_FeatureComponentPartial.cs`)
- Scrap Showcase → EF Context: loads scraps (evidence: `WebApplication1/ViewComponents/_ScrapsComponentPartial.cs`)
- Footer Content → EF Context: loads footer data (evidence: `WebApplication1/ViewComponents/_FooterComponentPartial.cs`)
- Footer Content → Footer View Model: creates model (evidence: `WebApplication1/ViewComponents/_FooterComponentPartial.cs`)
- EF Context → Content Entities: maps entities (evidence: `WebApplication1/DAL/Context/HurdaciContext.cs`)
- EF Context → SQL Database: configures SQL (evidence: `WebApplication1/DAL/Context/HurdaciContext.cs`)
