# sethbr11/react-dotnet architecture

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

- Interactive diagram: https://gitdiagram.com/sethbr11/react-dotnet
- Repository: https://github.com/sethbr11/react-dotnet

## Overview

This is a React/.NET bowling-league template. The main user workflow is opening the bowlers page, which fetches league data through the API and displays the Marlins and Sharks. The backend exposes repository-backed data over HTTP and uses EF Core with SQLite; its model covers bowlers, scores, teams, matches, and tournaments. The README also documents health checks and development Swagger. Backend details beyond the supplied excerpts are represented only where documented; the README supports the frontend-to-API relationship.

Main entry points: [`frontend/src/App.tsx`](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/App.tsx) (Page composition), [`frontend/src/BowlersTable.tsx`](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/BowlersTable.tsx) (Bowlers table), [`backend/Data/EFBowlingLeagueRepository.cs`](https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/EFBowlingLeagueRepository.cs) (EF repository), [`backend/Program.cs`](https://github.com/sethbr11/react-dotnet/blob/main/backend/Program.cs) (API runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Bowler experience"]
  node_app["Page composition<br/>[App.tsx]"]
  node_header["Page header<br/>[Header.tsx]"]
  node_table["Bowlers table<br/>[BowlersTable.tsx]"]
  node_bowler_type["Bowler type<br/>[Bowler.ts]"]
end

subgraph group_api["League API"]
  node_api_client["League controller"]
end

subgraph group_data["League data"]
  node_repository_contract["Repository contract"]
  node_ef_repository["EF repository"]
  node_league_context["EF data context"]
  node_league_models["League entities"]
  node_sqlite[("SQLite database")]
end

subgraph group_runtime["Backend runtime"]
  node_backend_runtime["API runtime<br/>[Program.cs]"]
  node_health["Health check"]
  node_swagger["Swagger UI"]
end

node_visitor(("App visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"renders"| node_header
node_app -->|"renders"| node_table
node_table -->|"uses type"| node_bowler_type
node_table -->|"fetches data"| node_api_client
node_api_client -->|"uses"| node_repository_contract
node_ef_repository -->|"implements"| node_repository_contract
node_ef_repository -->|"queries"| node_league_context
node_league_context -->|"uses provider"| node_sqlite
node_backend_runtime -->|"hosts"| node_health
node_backend_runtime -->|"hosts"| node_swagger

click node_app "https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/App.tsx"
click node_header "https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/Header.tsx"
click node_table "https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/BowlersTable.tsx"
click node_bowler_type "https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/types/Bowler.ts"
click node_api_client "https://github.com/sethbr11/react-dotnet/blob/main/backend/Controllers/BowlingLeagueController.cs"
click node_repository_contract "https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/IBowlingLeagueRepository.cs"
click node_ef_repository "https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/EFBowlingLeagueRepository.cs"
click node_league_context "https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/BowlingLeagueContext.cs"
click node_league_models "https://github.com/sethbr11/react-dotnet/tree/main/backend/Data"
click node_sqlite "https://github.com/sethbr11/react-dotnet/blob/main/backend/BowlingLeague.sqlite"
click node_backend_runtime "https://github.com/sethbr11/react-dotnet/blob/main/backend/Program.cs"
click node_health "https://github.com/sethbr11/react-dotnet/tree/main/backend"
click node_swagger "https://github.com/sethbr11/react-dotnet/tree/main/backend"

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_header,node_table,node_bowler_type toneBlue
class node_api_client toneAmber
class node_repository_contract,node_ef_repository,node_league_context,node_league_models,node_sqlite toneMint
class node_backend_runtime,node_health,node_swagger toneRose
class node_visitor toneIndigo
```

## Components

### Bowler experience

- [Page composition](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [Page header](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/Header.tsx): `frontend/src/Header.tsx`
- [Bowlers table](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/BowlersTable.tsx): `frontend/src/BowlersTable.tsx`
- [Bowler type](https://github.com/sethbr11/react-dotnet/blob/main/frontend/src/types/Bowler.ts): `frontend/src/types/Bowler.ts`

### League API

- [League controller](https://github.com/sethbr11/react-dotnet/blob/main/backend/Controllers/BowlingLeagueController.cs): `backend/Controllers/BowlingLeagueController.cs`

### League data

- [Repository contract](https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/IBowlingLeagueRepository.cs): `backend/Data/IBowlingLeagueRepository.cs`
- [EF repository](https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/EFBowlingLeagueRepository.cs): `backend/Data/EFBowlingLeagueRepository.cs`
- [EF data context](https://github.com/sethbr11/react-dotnet/blob/main/backend/Data/BowlingLeagueContext.cs): `backend/Data/BowlingLeagueContext.cs`
- [League entities](https://github.com/sethbr11/react-dotnet/tree/main/backend/Data): `backend/Data`
- [SQLite database](https://github.com/sethbr11/react-dotnet/blob/main/backend/BowlingLeague.sqlite): `backend/BowlingLeague.sqlite`

### Backend runtime

- [API runtime](https://github.com/sethbr11/react-dotnet/blob/main/backend/Program.cs): `backend/Program.cs`
- [Health check](https://github.com/sethbr11/react-dotnet/tree/main/backend): `backend`
- [Swagger UI](https://github.com/sethbr11/react-dotnet/tree/main/backend): `backend`

### Other components

- **App visitor**

## Connections

- App visitor → Page composition: opens (evidence: `README.md`)
- Page composition → Page header: renders (evidence: `frontend/src/App.tsx`)
- Page composition → Bowlers table: renders (evidence: `frontend/src/App.tsx`)
- Bowlers table → Bowler type: uses type (evidence: `frontend/src/BowlersTable.tsx`)
- Bowlers table → League controller: fetches data (evidence: `README.md`)
- League controller → Repository contract: uses (evidence: `backend/Controllers/BowlingLeagueController.cs`)
- EF repository → Repository contract: implements (evidence: `backend/Data/EFBowlingLeagueRepository.cs`)
- EF repository → EF data context: queries (evidence: `backend/Data/EFBowlingLeagueRepository.cs`)
- EF data context → SQLite database: uses provider (evidence: `README.md`)
- API runtime → Health check: hosts (evidence: `README.md`)
- API runtime → Swagger UI: hosts (evidence: `README.md`)
