# dani23168/giftofthegivers architecture

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

- Interactive diagram: https://gitdiagram.com/dani23168/giftofthegivers
- Repository: https://github.com/dani23168/giftofthegivers

## Overview

GiftOfTheGivers is an ASP.NET Core MVC relief-charity application. Visitors can browse relief projects, submit donations and volunteer registrations, and register accounts; employees can create projects, post updates, and review operational totals. The donation flow persists the donation, creates a tax-certificate record, then looks up the donation for confirmation. The graph includes the shared EF Core store and domain models. Source excerpts show controller behavior and host setup; the README is empty, and unsampled view and contact behavior is not inferred.

Main entry points: [`GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs) (EF data context), [`GiftOfTheGivers/GiftOfTheGivers/Program.cs`](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Program.cs) (ASP.NET host), [`GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs) (Staff dashboard), [`GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs) (Donation workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_host["ASP.NET host<br/>[Program.cs]"]
  node_home["Home and contact<br/>[HomeController.cs]"]
  node_contact["Contact handler"]
  node_registration["Account registration<br/>[Register.cshtml.cs]"]
  node_identity["Identity service"]
end

subgraph group_operations["Relief operations"]
  node_projects["Project management"]
  node_dashboard["Staff dashboard"]
end

subgraph group_giving["Giving and volunteers"]
  node_donations["Donation workflow"]
  node_volunteers["Volunteer intake"]
end

subgraph group_domain["Domain and persistence"]
  node_dbcontext["EF data context"]
  node_database[("Relational database")]
  node_users["User accounts<br/>[ApplicationUser.cs]"]
  node_donationmodel["Donation records<br/>[Donation.cs]"]
  node_certificates["Tax certificates<br/>[TaxCertificate.cs]"]
  node_projectmodel["Relief projects<br/>[ReliefProject.cs]"]
  node_updates["Project updates<br/>[ProjectUpdate.cs]"]
  node_volunteermodel["Volunteer profiles<br/>[Volunteer.cs]"]
  node_error["Error view model<br/>[ErrorViewModel.cs]"]
end

node_visitor(("Visitor"))
node_employee(("Employee"))

node_host -->|"configures"| node_dbcontext
node_host -->|"registers"| node_identity
node_host -->|"routes requests"| node_projects
node_host -->|"routes requests"| node_donations
node_host -->|"routes requests"| node_volunteers
node_host -->|"routes requests"| node_dashboard
node_host -->|"routes requests"| node_home
node_host -->|"routes requests"| node_contact
node_visitor -.->|"sends requests"| node_host
node_employee -.->|"sends requests"| node_host
node_registration -->|"creates account"| node_identity
node_projects -->|"queries and saves"| node_dbcontext
node_dashboard -->|"queries totals"| node_dbcontext
node_donations -->|"saves and reads"| node_dbcontext
node_donations -->|"gets user ID"| node_identity
node_volunteers -->|"saves profile"| node_dbcontext
node_volunteers -->|"gets user ID"| node_identity
node_dbcontext -->|"persists entities"| node_database
node_dbcontext -->|"maps entity"| node_users
node_dbcontext -->|"maps entity"| node_donationmodel
node_dbcontext -->|"maps entity"| node_certificates
node_dbcontext -->|"maps entity"| node_projectmodel
node_dbcontext -->|"maps entity"| node_updates
node_dbcontext -->|"maps entity"| node_volunteermodel
node_donations -->|"creates record"| node_certificates
node_projects -->|"reads and writes"| node_projectmodel
node_projects -->|"creates update"| node_updates
node_dashboard -->|"reads profiles"| node_volunteermodel
node_dashboard -->|"reads projects"| node_projectmodel
node_dashboard -->|"aggregates amounts"| node_donationmodel
node_volunteers -->|"creates profile"| node_volunteermodel
node_donations -->|"creates and loads"| node_donationmodel
node_home -->|"uses model"| node_error

click node_host "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Program.cs"
click node_home "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/HomeController.cs"
click node_contact "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/ContactController.cs"
click node_registration "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Areas/Identity/Pages/Account/Register.cshtml.cs"
click node_projects "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs"
click node_dashboard "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs"
click node_donations "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs"
click node_volunteers "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs"
click node_dbcontext "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs"
click node_users "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ApplicationUser.cs"
click node_donationmodel "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/Donation.cs"
click node_certificates "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/TaxCertificate.cs"
click node_projectmodel "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ReliefProject.cs"
click node_updates "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ProjectUpdate.cs"
click node_volunteermodel "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/Volunteer.cs"
click node_error "https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/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_host,node_home,node_contact,node_registration,node_identity toneBlue
class node_projects,node_dashboard toneAmber
class node_donations,node_volunteers toneMint
class node_dbcontext,node_database,node_users,node_donationmodel,node_certificates,node_projectmodel,node_updates,node_volunteermodel,node_error toneRose
class node_visitor,node_employee toneIndigo
```

## Components

### Web application

- [ASP.NET host](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Program.cs): `GiftOfTheGivers/GiftOfTheGivers/Program.cs`
- [Home and contact](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/HomeController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/HomeController.cs`
- [Contact handler](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/ContactController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/ContactController.cs`
- [Account registration](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Areas/Identity/Pages/Account/Register.cshtml.cs): `GiftOfTheGivers/GiftOfTheGivers/Areas/Identity/Pages/Account/Register.cshtml.cs`
- **Identity service**

### Relief operations

- [Project management](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs`
- [Staff dashboard](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`

### Giving and volunteers

- [Donation workflow](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`
- [Volunteer intake](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs): `GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs`

### Domain and persistence

- [EF data context](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs): `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`
- **Relational database**
- [User accounts](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ApplicationUser.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/ApplicationUser.cs`
- [Donation records](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/Donation.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/Donation.cs`
- [Tax certificates](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/TaxCertificate.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/TaxCertificate.cs`
- [Relief projects](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ReliefProject.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/ReliefProject.cs`
- [Project updates](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ProjectUpdate.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/ProjectUpdate.cs`
- [Volunteer profiles](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/Volunteer.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/Volunteer.cs`
- [Error view model](https://github.com/dani23168/giftofthegivers/blob/main/GiftOfTheGivers/GiftOfTheGivers/Models/ErrorViewModel.cs): `GiftOfTheGivers/GiftOfTheGivers/Models/ErrorViewModel.cs`

### Other components

- **Visitor**
- **Employee**

## Connections

- ASP.NET host → EF data context: configures (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Identity service: registers (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Project management: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Donation workflow: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Volunteer intake: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Staff dashboard: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Home and contact: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- ASP.NET host → Contact handler: routes requests (evidence: `GiftOfTheGivers/GiftOfTheGivers/Program.cs`)
- Visitor → ASP.NET host: sends requests
- Employee → ASP.NET host: sends requests
- Account registration → Identity service: creates account (evidence: `GiftOfTheGivers/GiftOfTheGivers/Areas/Identity/Pages/Account/Register.cshtml.cs`)
- Project management → EF data context: queries and saves (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs`)
- Staff dashboard → EF data context: queries totals (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`)
- Donation workflow → EF data context: saves and reads (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`)
- Donation workflow → Identity service: gets user ID (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`)
- Volunteer intake → EF data context: saves profile (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs`)
- Volunteer intake → Identity service: gets user ID (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs`)
- EF data context → Relational database: persists entities
- EF data context → User accounts: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- EF data context → Donation records: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- EF data context → Tax certificates: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- EF data context → Relief projects: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- EF data context → Project updates: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- EF data context → Volunteer profiles: maps entity (evidence: `GiftOfTheGivers/GiftOfTheGivers/Data/ApplicationDbContext.cs`)
- Donation workflow → Tax certificates: creates record (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`)
- Project management → Relief projects: reads and writes (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs`)
- Project management → Project updates: creates update (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/ProjectController.cs`)
- Staff dashboard → Volunteer profiles: reads profiles (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`)
- Staff dashboard → Relief projects: reads projects (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`)
- Staff dashboard → Donation records: aggregates amounts (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DashboardController.cs`)
- Volunteer intake → Volunteer profiles: creates profile (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/VolunteerController.cs`)
- Donation workflow → Donation records: creates and loads (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/DonationController.cs`)
- Home and contact → Error view model: uses model (evidence: `GiftOfTheGivers/GiftOfTheGivers/Controllers/HomeController.cs`)
