# petender/skills-getting-started-with-github-copilot architecture

> Architecture diagram of the GitHub repository petender/skills-getting-started-with-github-copilot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/petender/skills-getting-started-with-github-copilot
- Repository: https://github.com/petender/skills-getting-started-with-github-copilot

## Overview

Mergington High School’s app lets students browse extracurricular activities and sign up. The browser UI fetches the activity list from the FastAPI service, displays schedules and available places, and submits signups; the service validates activity names and updates an in-memory participant list. The graph separates the browser experience, API, and state. The HTML and CSS were not sampled, so their internal wiring is not asserted; the documented redirect and sampled JavaScript establish the shown route relationships.

Main entry points: [`src/static/app.js`](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/app.js) (UI controller), [`src/app.py`](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py) (Activities endpoint), [`src/static/index.html`](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/index.html) (Activity page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_browser["Browser experience"]
  node_page["Activity page<br/>[index.html]"]
  node_controller["UI controller<br/>[app.js]"]
  node_styles["Page styles<br/>[styles.css]"]
end

subgraph group_api["Activity API"]
  node_activities_api["Activities endpoint<br/>[app.py]"]
  node_signup_api["Signup endpoint<br/>[app.py]"]
end

subgraph group_state["Activity state"]
  node_activity_state[("Activity records<br/>[app.py]")]
end

node_student(("Student"))

node_student -->|"opens"| node_page
node_controller -->|"fetches list"| node_activities_api
node_activities_api -->|"reads"| node_activity_state
node_controller -->|"submits signup"| node_signup_api
node_signup_api -->|"adds participant"| node_activity_state

click node_page "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/index.html"
click node_controller "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/app.js"
click node_styles "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/styles.css"
click node_activities_api "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py"
click node_signup_api "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py"
click node_activity_state "https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.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_page,node_controller,node_styles toneBlue
class node_activities_api,node_signup_api toneAmber
class node_activity_state toneMint
class node_student toneIndigo
```

## Components

### Browser experience

- [Activity page](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/index.html): `src/static/index.html`
- [UI controller](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/app.js): `src/static/app.js`
- [Page styles](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/static/styles.css): `src/static/styles.css`

### Activity API

- [Activities endpoint](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py): `src/app.py`
- [Signup endpoint](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py): `src/app.py`

### Activity state

- [Activity records](https://github.com/petender/skills-getting-started-with-github-copilot/blob/main/src/app.py): `src/app.py`

### Other components

- **Student**

## Connections

- Student → Activity page: opens
- UI controller → Activities endpoint: fetches list (evidence: `src/static/app.js`)
- Activities endpoint → Activity records: reads (evidence: `src/app.py`)
- UI controller → Signup endpoint: submits signup (evidence: `src/static/app.js`)
- Signup endpoint → Activity records: adds participant (evidence: `src/app.py`)
