# alan24511-ui/edutrack architecture

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

- Interactive diagram: https://gitdiagram.com/alan24511-ui/edutrack
- Repository: https://github.com/alan24511-ui/edutrack

## Overview

EduTrack is currently a minimal Angular frontend paired with a FastAPI backend. The visible backend workflow is a client requesting a health endpoint; the database health check obtains a PostgreSQL connection and runs a probe. The frontend only bootstraps an app shell with an empty route list in the sampled code, so no user-facing school, access-control, or attendance workflow is evidenced. Edges reflect shown bootstrap wiring and database calls; broader capabilities are not documented in the README.

Main entry points: [`src/main.ts`](https://github.com/alan24511-ui/edutrack/blob/main/src/main.ts) (App bootstrap), [`src/app/app.config.ts`](https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.config.ts) (Router config), [`backend/app/main.py`](https://github.com/alan24511-ui/edutrack/blob/main/backend/app/main.py) (Health API), [`backend/app/database.py`](https://github.com/alan24511-ui/edutrack/blob/main/backend/app/database.py) (DB connector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Angular frontend"]
  node_bootstrap["App bootstrap<br/>[main.ts]"]
  node_app_shell["App shell<br/>[app.ts]"]
  node_router_config["Router config<br/>[app.config.ts]"]
  node_route_list["Route list<br/>[app.routes.ts]"]
end

subgraph group_backend["API and storage"]
  node_health_api["Health API<br/>[main.py]"]
  node_db_connector["DB connector<br/>[database.py]"]
end

node_client(("API client"))
node_postgres[("PostgreSQL")]

node_bootstrap -->|"bootstraps"| node_app_shell
node_bootstrap -->|"configures with"| node_router_config
node_router_config -->|"provides routes"| node_route_list
node_client -->|"requests health"| node_health_api
node_health_api -->|"checks database"| node_db_connector
node_db_connector -->|"opens connection"| node_postgres

click node_bootstrap "https://github.com/alan24511-ui/edutrack/blob/main/src/main.ts"
click node_app_shell "https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.ts"
click node_router_config "https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.config.ts"
click node_route_list "https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.routes.ts"
click node_health_api "https://github.com/alan24511-ui/edutrack/blob/main/backend/app/main.py"
click node_db_connector "https://github.com/alan24511-ui/edutrack/blob/main/backend/app/database.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_bootstrap,node_app_shell,node_router_config,node_route_list,node_client toneBlue
class node_health_api,node_db_connector,node_postgres toneAmber
```

## Components

### Angular frontend

- [App bootstrap](https://github.com/alan24511-ui/edutrack/blob/main/src/main.ts): `src/main.ts`
- [App shell](https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.ts): `src/app/app.ts`
- [Router config](https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.config.ts): `src/app/app.config.ts`
- [Route list](https://github.com/alan24511-ui/edutrack/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`

### API and storage

- [Health API](https://github.com/alan24511-ui/edutrack/blob/main/backend/app/main.py): `backend/app/main.py`
- [DB connector](https://github.com/alan24511-ui/edutrack/blob/main/backend/app/database.py): `backend/app/database.py`

### Other components

- **API client**
- **PostgreSQL**

## Connections

- App bootstrap → App shell: bootstraps (evidence: `src/main.ts`)
- App bootstrap → Router config: configures with (evidence: `src/main.ts`)
- Router config → Route list: provides routes (evidence: `src/app/app.config.ts`)
- API client → Health API: requests health (evidence: `backend/app/main.py`)
- Health API → DB connector: checks database (evidence: `backend/app/main.py`)
- DB connector → PostgreSQL: opens connection (evidence: `backend/app/database.py`)
