# ipdc-aiet/invictoria architecture

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

- Interactive diagram: https://gitdiagram.com/ipdc-aiet/invictoria
- Repository: https://github.com/ipdc-aiet/invictoria

## Overview

This repository combines an Invictoria competition platform, a separate score-management API, and a Shortscut marketing site represented in two frontend versions. The competition workflow appears to span team registration, competition rounds, score entry, leaderboard and payments, with announcements and user/admin access as supporting capabilities. Source excerpts verify only a few internal relationships; most product routes and service wiring are unsampled, so those connections are omitted rather than inferred. The README describes repository governance, not product behavior.

Main entry points: [`frontend-1/src/data/content.js`](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/data/content.js) (Marketing content), [`frontend-1/app/page.jsx`](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/page.jsx) (Marketing pages), [`frontend-1/app/work-with-us/page.jsx`](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/work-with-us/page.jsx) (Partnership inquiry), [`score_management_backend/main.py`](https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/main.py) (Score API app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_competition_ui["Competition frontend"]
  node_competition_pages["Competition pages"]
  node_team_pages["Team registration"]
  node_score_pages["Score entry<br/>[ScoreEntryPage.jsx]"]
  node_leaderboard_page["Leaderboard view<br/>[page.jsx]"]
  node_payment_pages["Payment flow<br/>[PaymentPage.jsx]"]
  node_announcements_page["Announcements view"]
  node_frontend_api["API client<br/>[client.js]"]
end

subgraph group_django["Django platform"]
  node_django_routes["API routing<br/>[urls.py]"]
  node_users[("Users and admins<br/>[models.py]")]
  node_common_models[("Shared platform data<br/>[models.py]")]
  node_team_service["Team operations<br/>[services.py]"]
  node_audit_notify["Audit and notifications<br/>[services.py]"]
  node_competition_backend["Competition domain<br/>[views.py]"]
  node_payments_backend["Payments domain<br/>[views.py]"]
  node_scores_backend["Scores and ranking<br/>[ranking.py]"]
  node_announcements_backend["Announcements domain<br/>[views.py]"]
end

subgraph group_score_api["Score API"]
  node_score_app["Score API app<br/>[main.py]"]
  node_score_routes["Score API routes<br/>[routes.py]"]
  node_score_services["Score and leaderboard services<br/>[score_service.py]"]
end

subgraph group_marketing["Shortscut site"]
  node_marketing_pages["Marketing pages<br/>[page.jsx]"]
  node_marketing_content["Marketing content<br/>[content.js]"]
  node_services_accordion["Services accordion"]
  node_contact_page["Partnership inquiry<br/>[page.jsx]"]
  node_marketing_v2["Second site frontend<br/>[page.tsx]"]
end

node_visitor(("Participant / visitor"))

node_visitor -.->|"browses"| node_competition_pages
node_visitor -.->|"registers"| node_team_pages
node_visitor -.->|"enters scores"| node_score_pages
node_visitor -.->|"views standings"| node_leaderboard_page
node_visitor -.->|"pays"| node_payment_pages
node_visitor -.->|"reads updates"| node_announcements_page
node_visitor -.->|"browses"| node_marketing_pages
node_visitor -.->|"submits inquiry"| node_contact_page
node_score_app -->|"registers router"| node_score_routes
node_marketing_pages -->|"reads data"| node_marketing_content
node_services_accordion -.->|"renders services"| node_marketing_content
node_contact_page -->|"reads metadata"| node_marketing_content

click node_competition_pages "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/competition/pages/CompetitionPage.jsx"
click node_team_pages "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/teams/pages/TeamRegisterPage.jsx"
click node_score_pages "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/scores/pages/ScoreEntryPage.jsx"
click node_leaderboard_page "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/leaderboard/page.jsx"
click node_payment_pages "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/payments/pages/PaymentPage.jsx"
click node_announcements_page "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/announcements/pages/AnnouncementsPage.jsx"
click node_frontend_api "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/api/client.js"
click node_django_routes "https://github.com/ipdc-aiet/invictoria/blob/main/backend/api/v1/urls.py"
click node_users "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/users/models.py"
click node_common_models "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/common/models.py"
click node_team_service "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/teams/services.py"
click node_audit_notify "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/common/services.py"
click node_competition_backend "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/competition/views.py"
click node_payments_backend "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/payments/views.py"
click node_scores_backend "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/scores/ranking.py"
click node_announcements_backend "https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/announcements/views.py"
click node_score_app "https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/main.py"
click node_score_routes "https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/app/api/routes.py"
click node_score_services "https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/app/services/score_service.py"
click node_marketing_pages "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/page.jsx"
click node_marketing_content "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/data/content.js"
click node_services_accordion "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/components/site/ServicesAccordion.jsx"
click node_contact_page "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/work-with-us/page.jsx"
click node_marketing_v2 "https://github.com/ipdc-aiet/invictoria/blob/main/frontend-2/src/app/page.tsx"

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_competition_pages,node_team_pages,node_score_pages,node_leaderboard_page,node_payment_pages,node_announcements_page,node_frontend_api toneBlue
class node_django_routes,node_users,node_common_models,node_team_service,node_audit_notify,node_competition_backend,node_payments_backend,node_scores_backend,node_announcements_backend toneAmber
class node_score_app,node_score_routes,node_score_services toneMint
class node_marketing_pages,node_marketing_content,node_services_accordion,node_contact_page,node_marketing_v2 toneRose
class node_visitor toneIndigo
```

## Components

### Competition frontend

- [Competition pages](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/competition/pages/CompetitionPage.jsx): `frontend-1/src/features/competition/pages/CompetitionPage.jsx`
- [Team registration](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/teams/pages/TeamRegisterPage.jsx): `frontend-1/src/features/teams/pages/TeamRegisterPage.jsx`
- [Score entry](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/scores/pages/ScoreEntryPage.jsx): `frontend-1/src/features/scores/pages/ScoreEntryPage.jsx`
- [Leaderboard view](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/leaderboard/page.jsx): `frontend-1/app/leaderboard/page.jsx`
- [Payment flow](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/payments/pages/PaymentPage.jsx): `frontend-1/src/features/payments/pages/PaymentPage.jsx`
- [Announcements view](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/features/announcements/pages/AnnouncementsPage.jsx): `frontend-1/src/features/announcements/pages/AnnouncementsPage.jsx`
- [API client](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/api/client.js): `frontend-1/src/api/client.js`

### Django platform

- [API routing](https://github.com/ipdc-aiet/invictoria/blob/main/backend/api/v1/urls.py): `backend/api/v1/urls.py`
- [Users and admins](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/users/models.py): `backend/apps/users/models.py`
- [Shared platform data](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/common/models.py): `backend/apps/common/models.py`
- [Team operations](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/teams/services.py): `backend/apps/teams/services.py`
- [Audit and notifications](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/common/services.py): `backend/apps/common/services.py`
- [Competition domain](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/competition/views.py): `backend/apps/competition/views.py`
- [Payments domain](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/payments/views.py): `backend/apps/payments/views.py`
- [Scores and ranking](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/scores/ranking.py): `backend/apps/scores/ranking.py`
- [Announcements domain](https://github.com/ipdc-aiet/invictoria/blob/main/backend/apps/announcements/views.py): `backend/apps/announcements/views.py`

### Score API

- [Score API app](https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/main.py): `score_management_backend/main.py`
- [Score API routes](https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/app/api/routes.py): `score_management_backend/app/api/routes.py`
- [Score and leaderboard services](https://github.com/ipdc-aiet/invictoria/blob/main/score_management_backend/app/services/score_service.py): `score_management_backend/app/services/score_service.py`

### Shortscut site

- [Marketing pages](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/page.jsx): `frontend-1/app/page.jsx`
- [Marketing content](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/data/content.js): `frontend-1/src/data/content.js`
- [Services accordion](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/src/components/site/ServicesAccordion.jsx): `frontend-1/src/components/site/ServicesAccordion.jsx`
- [Partnership inquiry](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-1/app/work-with-us/page.jsx): `frontend-1/app/work-with-us/page.jsx`
- [Second site frontend](https://github.com/ipdc-aiet/invictoria/blob/main/frontend-2/src/app/page.tsx): `frontend-2/src/app/page.tsx`

### Other components

- **Participant / visitor**

## Connections

- Participant / visitor → Competition pages: browses
- Participant / visitor → Team registration: registers
- Participant / visitor → Score entry: enters scores
- Participant / visitor → Leaderboard view: views standings
- Participant / visitor → Payment flow: pays
- Participant / visitor → Announcements view: reads updates
- Participant / visitor → Marketing pages: browses
- Participant / visitor → Partnership inquiry: submits inquiry
- Score API app → Score API routes: registers router (evidence: `score_management_backend/main.py`)
- Marketing pages → Marketing content: reads data
- Services accordion → Marketing content: renders services
- Partnership inquiry → Marketing content: reads metadata (evidence: `frontend-1/app/work-with-us/page.jsx`)
