# gandhi-balakrishnan/learningday-repo1 architecture

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

- Interactive diagram: https://gitdiagram.com/gandhi-balakrishnan/learningday-repo1
- Repository: https://github.com/gandhi-balakrishnan/learningday-repo1

## Overview

This is a small FastAPI application for viewing and managing student sign-ups for school activities. A student uses the browser interface to view activities, sign up, or remove a participant; the JavaScript client sends requests to the API, which reads or updates an in-memory activity map. The API also redirects the root route to the static page. The HTML page’s contents were not sampled, so its client-side wiring is not shown.

Main entry points: [`src/app.py`](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py) (Activity API), [`src/static/app.js`](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/app.js) (Activity interface), [`src/static/index.html`](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/index.html) (Activity page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser client"]
  node_web_client["Activity interface<br/>[app.js]"]
  node_page["Activity page<br/>[index.html]"]
end

subgraph group_api["Activity API"]
  node_activity_api["Activity API<br/>[app.py]"]
  node_activity_listing["Activity listing<br/>[app.py]"]
  node_signup_management["Sign-up management<br/>[app.py]"]
end

subgraph group_state["Activity state"]
  node_activity_state[("In-memory activities<br/>[app.py]")]
end

node_student(("Student"))

node_student -->|"uses"| node_web_client
node_web_client -->|"requests"| node_activity_api
node_activity_api -->|"redirects to"| node_page
node_activity_api -->|"routes listing"| node_activity_listing
node_activity_api -->|"routes sign-ups"| node_signup_management
node_activity_listing -->|"reads"| node_activity_state
node_signup_management -->|"updates"| node_activity_state

click node_web_client "https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/app.js"
click node_page "https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/index.html"
click node_activity_api "https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py"
click node_activity_listing "https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py"
click node_signup_management "https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py"
click node_activity_state "https://github.com/gandhi-balakrishnan/learningday-repo1/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_web_client,node_page toneBlue
class node_activity_api,node_activity_listing,node_signup_management toneAmber
class node_activity_state toneMint
class node_student toneIndigo
```

## Components

### Browser client

- [Activity interface](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/app.js): `src/static/app.js`
- [Activity page](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/static/index.html): `src/static/index.html`

### Activity API

- [Activity API](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py): `src/app.py`
- [Activity listing](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py): `src/app.py`
- [Sign-up management](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py): `src/app.py`

### Activity state

- [In-memory activities](https://github.com/gandhi-balakrishnan/learningday-repo1/blob/main/src/app.py): `src/app.py`

### Other components

- **Student**

## Connections

- Student → Activity interface: uses
- Activity interface → Activity API: requests (evidence: `src/static/app.js`)
- Activity API → Activity page: redirects to (evidence: `src/app.py`)
- Activity API → Activity listing: routes listing (evidence: `src/app.py`)
- Activity API → Sign-up management: routes sign-ups (evidence: `src/app.py`)
- Activity listing → In-memory activities: reads (evidence: `src/app.py`)
- Sign-up management → In-memory activities: updates (evidence: `src/app.py`)
