# itslibanneishamae/car-show-registration-fulgar-liban architecture

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

- Interactive diagram: https://gitdiagram.com/itslibanneishamae/car-show-registration-fulgar-liban
- Repository: https://github.com/itslibanneishamae/car-show-registration-fulgar-liban

## Overview

This is a car-show registration dashboard with a React frontend and an ASP.NET API backed by SQLite. The main user workflow is viewing registrations, narrowing them by participant, type, or status, and paging through results; separate summary data drives KPI cards. The backend also exposes registration creation and lookup capabilities, with domain rules and persistence supporting those operations. Several UI-to-API and endpoint-to-handler details are not shown in the excerpts, so those relationships are omitted or marked unverified rather than assumed.

Main entry points: [`src/pages/RegistrationsPage.jsx`](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/pages/RegistrationsPage.jsx) (Registrations page), [`backend/Api/Endpoints/Registrations/RegistrationEndpoints.cs`](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Api/Endpoints/Registrations/RegistrationEndpoints.cs) (Registration endpoints), [`backend/Domain/Entities/Registration.cs`](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Entities/Registration.cs) (Registration entity), [`backend/Infrastructure/Persistence/AppDbContext.cs`](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/AppDbContext.cs) (EF database context)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Registration dashboard"]
  node_page["Registrations page"]
  node_filters["Registration filters"]
  node_debounce["Search debounce<br/>[useDebounce.js]"]
  node_table["Registration table"]
  node_pagination["Pagination<br/>[Pagination.jsx]"]
  node_kpis["Summary KPI cards<br/>[KpiCards.jsx]"]
  node_badges["Status and payment badges<br/>[StatusBadge.jsx]"]
  node_api_client["Registration API client"]
  node_sample_data["Sample registration data<br/>[sample-data.js]"]
end

subgraph group_api["API and use cases"]
  node_api_host["ASP.NET API host<br/>[Program.cs]"]
  node_endpoints["Registration endpoints"]
  node_create["Create registration<br/>[Handler.cs]"]
  node_get_one["Get registration<br/>[Handler.cs]"]
  node_get_list["List registrations<br/>[Handler.cs]"]
  node_get_summary["Registration summary<br/>[Handler.cs]"]
  node_store_contract["Registration store contract"]
  node_result["Operation results<br/>[Result.cs]"]
  node_response_model["Registration response model"]
end

subgraph group_domain["Registration domain"]
  node_registration["Registration entity<br/>[Registration.cs]"]
  node_registration_types["Registration types"]
  node_registration_status["Registration statuses"]
  node_payment_status["Payment statuses<br/>[PaymentStatus.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db_context[("EF database context<br/>[AppDbContext.cs]")]
  node_store["Registration store"]
  node_configuration["Registration mapping"]
  node_seeder["Registration seeder"]
end

node_user(("Dashboard user"))
node_sqlite[("SQLite database")]

node_user -->|"uses"| node_page
node_page -->|"renders"| node_filters
node_page -->|"renders"| node_table
node_page -->|"renders"| node_pagination
node_page -->|"renders"| node_kpis
node_page -->|"debounces search"| node_debounce
node_table -->|"renders"| node_badges
node_page -->|"requests data"| node_api_client
node_kpis -->|"imports"| node_sample_data
node_table -->|"imports"| node_sample_data
node_api_client -->|"imports"| node_sample_data
node_api_client -.->|"calls API"| node_endpoints
node_api_host -->|"maps routes"| node_endpoints
node_endpoints -.->|"dispatches"| node_create
node_endpoints -.->|"dispatches"| node_get_one
node_endpoints -.->|"dispatches"| node_get_list
node_endpoints -.->|"dispatches"| node_get_summary
node_create -->|"calls"| node_store_contract
node_get_one -->|"calls"| node_store_contract
node_get_list -->|"calls"| node_store_contract
node_get_summary -->|"calls"| node_store_contract
node_create -->|"returns result"| node_result
node_store -->|"implements"| node_store_contract
node_store -->|"queries and saves"| node_db_context
node_db_context -->|"maps entity"| node_registration
node_db_context -->|"applies mapping"| node_configuration
node_api_host -->|"migrates database"| node_db_context
node_api_host -->|"seeds data"| node_seeder
node_db_context -.->|"persists data"| node_sqlite
node_response_model -->|"maps entity"| node_registration
node_registration -->|"uses"| node_registration_types
node_registration -->|"uses"| node_registration_status
node_registration -->|"derives"| node_payment_status

click node_page "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/pages/RegistrationsPage.jsx"
click node_filters "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/RegistrationFilters.jsx"
click node_debounce "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/hooks/useDebounce.js"
click node_table "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/RegistrationTable.jsx"
click node_pagination "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/Pagination.jsx"
click node_kpis "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/KpiCards.jsx"
click node_badges "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/StatusBadge.jsx"
click node_api_client "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/api/registrationsApi.js"
click node_sample_data "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/api/sample-data.js"
click node_api_host "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Api/Program.cs"
click node_endpoints "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Api/Endpoints/Registrations/RegistrationEndpoints.cs"
click node_create "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/CreateRegistration/Handler.cs"
click node_get_one "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrationById/Handler.cs"
click node_get_list "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrations/Handler.cs"
click node_get_summary "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrationSummary/Handler.cs"
click node_store_contract "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Abstractions/IRegistrationStore.cs"
click node_result "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Common/Result.cs"
click node_registration "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Entities/Registration.cs"
click node_registration_types "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/RegistrationType.cs"
click node_registration_status "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/RegistrationStatus.cs"
click node_payment_status "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/PaymentStatus.cs"
click node_response_model "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/RegistrationResponse.cs"
click node_db_context "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/AppDbContext.cs"
click node_store "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/RegistrationStore.cs"
click node_configuration "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/Configurations/RegistrationsConfigurations.cs"
click node_seeder "https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/Seed/RegistrationsSeeder.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_page,node_filters,node_debounce,node_table,node_pagination,node_kpis,node_badges,node_api_client,node_sample_data,node_user toneBlue
class node_api_host,node_endpoints,node_create,node_get_one,node_get_list,node_get_summary,node_store_contract,node_result,node_response_model,node_sqlite toneAmber
class node_registration,node_registration_types,node_registration_status,node_payment_status toneMint
class node_db_context,node_store,node_configuration,node_seeder toneRose
```

## Components

### Registration dashboard

- [Registrations page](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/pages/RegistrationsPage.jsx): `src/pages/RegistrationsPage.jsx`
- [Registration filters](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/RegistrationFilters.jsx): `src/components/RegistrationFilters.jsx`
- [Search debounce](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/hooks/useDebounce.js): `src/hooks/useDebounce.js`
- [Registration table](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/RegistrationTable.jsx): `src/components/RegistrationTable.jsx`
- [Pagination](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/Pagination.jsx): `src/components/Pagination.jsx`
- [Summary KPI cards](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/KpiCards.jsx): `src/components/KpiCards.jsx`
- [Status and payment badges](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/components/StatusBadge.jsx): `src/components/StatusBadge.jsx`
- [Registration API client](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/api/registrationsApi.js): `src/api/registrationsApi.js`
- [Sample registration data](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/src/api/sample-data.js): `src/api/sample-data.js`

### API and use cases

- [ASP.NET API host](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Api/Program.cs): `backend/Api/Program.cs`
- [Registration endpoints](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Api/Endpoints/Registrations/RegistrationEndpoints.cs): `backend/Api/Endpoints/Registrations/RegistrationEndpoints.cs`
- [Create registration](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/CreateRegistration/Handler.cs): `backend/Application/Feature/Registrations/CreateRegistration/Handler.cs`
- [Get registration](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrationById/Handler.cs): `backend/Application/Feature/Registrations/GetRegistrationById/Handler.cs`
- [List registrations](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrations/Handler.cs): `backend/Application/Feature/Registrations/GetRegistrations/Handler.cs`
- [Registration summary](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/GetRegistrationSummary/Handler.cs): `backend/Application/Feature/Registrations/GetRegistrationSummary/Handler.cs`
- [Registration store contract](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Abstractions/IRegistrationStore.cs): `backend/Application/Abstractions/IRegistrationStore.cs`
- [Operation results](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Common/Result.cs): `backend/Application/Common/Result.cs`
- [Registration response model](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Application/Feature/Registrations/RegistrationResponse.cs): `backend/Application/Feature/Registrations/RegistrationResponse.cs`

### Registration domain

- [Registration entity](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Entities/Registration.cs): `backend/Domain/Entities/Registration.cs`
- [Registration types](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/RegistrationType.cs): `backend/Domain/Enums/RegistrationType.cs`
- [Registration statuses](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/RegistrationStatus.cs): `backend/Domain/Enums/RegistrationStatus.cs`
- [Payment statuses](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Domain/Enums/PaymentStatus.cs): `backend/Domain/Enums/PaymentStatus.cs`

### Persistence

- [EF database context](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/AppDbContext.cs): `backend/Infrastructure/Persistence/AppDbContext.cs`
- [Registration store](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/RegistrationStore.cs): `backend/Infrastructure/Persistence/RegistrationStore.cs`
- [Registration mapping](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/Configurations/RegistrationsConfigurations.cs): `backend/Infrastructure/Persistence/Configurations/RegistrationsConfigurations.cs`
- [Registration seeder](https://github.com/itslibanneishamae/car-show-registration-fulgar-liban/blob/main/backend/Infrastructure/Persistence/Seed/RegistrationsSeeder.cs): `backend/Infrastructure/Persistence/Seed/RegistrationsSeeder.cs`

### Other components

- **Dashboard user**
- **SQLite database**

## Connections

- Dashboard user → Registrations page: uses (evidence: `src/pages/RegistrationsPage.jsx`)
- Registrations page → Registration filters: renders (evidence: `src/pages/RegistrationsPage.jsx`)
- Registrations page → Registration table: renders (evidence: `src/pages/RegistrationsPage.jsx`)
- Registrations page → Pagination: renders (evidence: `src/pages/RegistrationsPage.jsx`)
- Registrations page → Summary KPI cards: renders (evidence: `src/pages/RegistrationsPage.jsx`)
- Registrations page → Search debounce: debounces search (evidence: `src/pages/RegistrationsPage.jsx`)
- Registration table → Status and payment badges: renders (evidence: `src/components/RegistrationTable.jsx`)
- Registrations page → Registration API client: requests data (evidence: `src/pages/RegistrationsPage.jsx`)
- Summary KPI cards → Sample registration data: imports (evidence: `src/components/KpiCards.jsx`)
- Registration table → Sample registration data: imports (evidence: `src/components/RegistrationTable.jsx`)
- Registration API client → Sample registration data: imports (evidence: `src/api/registrationsApi.js`)
- Registration API client → Registration endpoints: calls API
- ASP.NET API host → Registration endpoints: maps routes (evidence: `backend/Api/Program.cs`)
- Registration endpoints → Create registration: dispatches
- Registration endpoints → Get registration: dispatches
- Registration endpoints → List registrations: dispatches
- Registration endpoints → Registration summary: dispatches
- Create registration → Registration store contract: calls (evidence: `backend/Application/Feature/Registrations/CreateRegistration/Handler.cs`)
- Get registration → Registration store contract: calls (evidence: `backend/Application/Feature/Registrations/GetRegistrationById/Handler.cs`)
- List registrations → Registration store contract: calls (evidence: `backend/Application/Feature/Registrations/GetRegistrations/Handler.cs`)
- Registration summary → Registration store contract: calls (evidence: `backend/Application/Feature/Registrations/GetRegistrationSummary/Handler.cs`)
- Create registration → Operation results: returns result (evidence: `backend/Application/Feature/Registrations/CreateRegistration/Handler.cs`)
- Registration store → Registration store contract: implements (evidence: `backend/Infrastructure/DependencyInjections.cs`)
- Registration store → EF database context: queries and saves (evidence: `backend/Infrastructure/Persistence/RegistrationStore.cs`)
- EF database context → Registration entity: maps entity (evidence: `backend/Infrastructure/Persistence/AppDbContext.cs`)
- EF database context → Registration mapping: applies mapping (evidence: `backend/Infrastructure/Persistence/AppDbContext.cs`)
- ASP.NET API host → EF database context: migrates database (evidence: `backend/Api/Program.cs`)
- ASP.NET API host → Registration seeder: seeds data (evidence: `backend/Api/Program.cs`)
- EF database context → SQLite database: persists data
- Registration response model → Registration entity: maps entity (evidence: `backend/Application/Feature/Registrations/RegistrationResponse.cs`)
- Registration entity → Registration types: uses (evidence: `backend/Domain/Entities/Registration.cs`)
- Registration entity → Registration statuses: uses (evidence: `backend/Domain/Entities/Registration.cs`)
- Registration entity → Payment statuses: derives (evidence: `backend/Domain/Entities/Registration.cs`)
