# samuelembaye61-cyber/allunitedfc architecture

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

- Interactive diagram: https://gitdiagram.com/samuelembaye61-cyber/allunitedfc
- Repository: https://github.com/samuelembaye61-cyber/allunitedfc

## Overview

All United FC is a club website backed by Django: visitors browse roster, fixtures, league standings, news, and sponsors, or submit player and sponsor inquiries; staff manage club content through Django admin. The frontend calls the Django API, whose views expose model-backed data and submissions. The graph includes documented product capabilities even where their source was not sampled; edges involving unsampled frontend behavior are limited to README-supported relationships.

Main entry points: [`backend/club/urls.py`](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/urls.py) (Club API routes), [`backend/club/views.py`](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/views.py) (API handlers), [`players.js`](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/players.js) (Roster and fixtures), [`league.js`](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/league.js) (League hub)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Club website"]
  node_home["Club homepage<br/>[index.html]"]
  node_roster_ui["Roster and fixtures<br/>[players.js]"]
  node_league_ui["League hub<br/>[league.js]"]
  node_news_ui["News pages<br/>[news.js]"]
  node_sponsors_ui["Sponsor pages<br/>[sponsors.js]"]
  node_site_ui["Shared site behavior<br/>[site.js]"]
end

subgraph group_api["Django API"]
  node_route_config["URL dispatcher<br/>[urls.py]"]
  node_api_routes["Club API routes<br/>[urls.py]"]
  node_api_views["API handlers<br/>[views.py]"]
end

subgraph group_content["Club content"]
  node_club_models["Club domain models<br/>[models.py]"]
  node_club_store[("SQLite data<br/>[settings.py]")]
  node_news_content["News and media<br/>[models.py]"]
  node_league_data["League and matches<br/>[models.py]"]
  node_roster_data["Players<br/>[models.py]"]
end

subgraph group_operations["Club operations"]
  node_admin["Django admin<br/>[admin.py]"]
  node_prospects["Player inquiries<br/>[models.py]"]
  node_sponsor_ops["Sponsor management<br/>[models.py]"]
  node_mail(("Email service"))
end

node_visitors(("Visitors"))

node_visitors -->|"browse"| node_home
node_home -.->|"loads"| node_roster_ui
node_roster_ui -->|"requests data"| node_api_routes
node_league_ui -.->|"requests data"| node_api_routes
node_news_ui -->|"requests articles"| node_api_routes
node_sponsors_ui -.->|"requests sponsor data"| node_api_routes
node_site_ui -.->|"uses API"| node_api_routes
node_route_config -->|"includes routes"| node_api_routes
node_api_routes -->|"routes requests"| node_api_views
node_api_views -->|"queries and saves"| node_club_models
node_club_models -->|"persists records"| node_club_store
node_api_views -->|"sends notifications"| node_mail
node_admin -->|"manages records"| node_club_models
node_visitors -->|"read news"| node_news_ui
node_visitors -->|"view standings"| node_league_ui
node_visitors -.->|"view sponsors"| node_sponsors_ui
node_roster_ui -.->|"renders roster"| node_roster_data
node_league_ui -.->|"renders standings"| node_league_data
node_news_ui -.->|"renders articles"| node_news_content
node_api_views -->|"records inquiries"| node_prospects
node_api_views -->|"records sponsor leads"| node_sponsor_ops

click node_home "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/index.html"
click node_roster_ui "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/players.js"
click node_league_ui "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/league.js"
click node_news_ui "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/news.js"
click node_sponsors_ui "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/sponsors.js"
click node_site_ui "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/site.js"
click node_route_config "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/config/urls.py"
click node_api_routes "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/urls.py"
click node_api_views "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/views.py"
click node_club_models "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"
click node_club_store "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/config/settings.py"
click node_news_content "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"
click node_league_data "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"
click node_roster_data "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"
click node_admin "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/admin.py"
click node_prospects "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"
click node_sponsor_ops "https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py"

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_home,node_roster_ui,node_league_ui,node_news_ui,node_sponsors_ui,node_site_ui toneBlue
class node_route_config,node_api_routes,node_api_views toneAmber
class node_club_models,node_club_store,node_news_content,node_league_data,node_roster_data toneMint
class node_admin,node_prospects,node_sponsor_ops,node_mail toneRose
class node_visitors toneIndigo
```

## Components

### Club website

- [Club homepage](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/index.html): `index.html`
- [Roster and fixtures](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/players.js): `players.js`
- [League hub](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/league.js): `league.js`
- [News pages](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/news.js): `news.js`
- [Sponsor pages](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/sponsors.js): `sponsors.js`
- [Shared site behavior](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/site.js): `site.js`

### Django API

- [URL dispatcher](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/config/urls.py): `backend/config/urls.py`
- [Club API routes](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/urls.py): `backend/club/urls.py`
- [API handlers](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/views.py): `backend/club/views.py`

### Club content

- [Club domain models](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`
- [SQLite data](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/config/settings.py): `backend/config/settings.py`
- [News and media](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`
- [League and matches](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`
- [Players](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`

### Club operations

- [Django admin](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/admin.py): `backend/club/admin.py`
- [Player inquiries](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`
- [Sponsor management](https://github.com/samuelembaye61-cyber/allunitedfc/blob/main/backend/club/models.py): `backend/club/models.py`
- **Email service**

### Other components

- **Visitors**

## Connections

- Visitors → Club homepage: browse (evidence: `README.md`)
- Club homepage → Roster and fixtures: loads
- Roster and fixtures → Club API routes: requests data (evidence: `players.js`)
- League hub → Club API routes: requests data
- News pages → Club API routes: requests articles (evidence: `news.js`)
- Sponsor pages → Club API routes: requests sponsor data
- Shared site behavior → Club API routes: uses API
- URL dispatcher → Club API routes: includes routes (evidence: `backend/config/urls.py`)
- Club API routes → API handlers: routes requests (evidence: `backend/club/urls.py`)
- API handlers → Club domain models: queries and saves (evidence: `backend/club/views.py`)
- Club domain models → SQLite data: persists records (evidence: `backend/config/settings.py`)
- API handlers → Email service: sends notifications (evidence: `backend/club/views.py`)
- Django admin → Club domain models: manages records (evidence: `backend/club/admin.py`)
- Visitors → News pages: read news (evidence: `README.md`)
- Visitors → League hub: view standings (evidence: `README.md`)
- Visitors → Sponsor pages: view sponsors (evidence: `README.md`)
- Roster and fixtures → Players: renders roster
- League hub → League and matches: renders standings
- News pages → News and media: renders articles
- API handlers → Player inquiries: records inquiries (evidence: `backend/club/views.py`)
- API handlers → Sponsor management: records sponsor leads (evidence: `backend/club/views.py`)
