# jfernandora/io1_tracking architecture

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

- Interactive diagram: https://gitdiagram.com/jfernandora/io1_tracking
- Repository: https://github.com/jfernandora/io1_tracking

## Overview

TrackIng helps engineering students plan remaining coursework: students choose a curriculum, report their progress and constraints, request a plan, review semester and vacation assignments, and optionally export a PDF. The frontend sends requests to the FastAPI server, which loads curriculum and vacation data, prepares the course set, and delegates scheduling to the route planner. The graph separates the UI, API orchestration, planning logic, and source data. Evidence is limited to the provided excerpts and source index; no README content was available.

Main entry points: [`backend/server.py`](https://github.com/jfernandora/io1_tracking/blob/main/backend/server.py) (API server), [`frontend/js/app.js`](https://github.com/jfernandora/io1_tracking/blob/main/frontend/js/app.js) (Planner interface), [`backend/utilidades.py`](https://github.com/jfernandora/io1_tracking/blob/main/backend/utilidades.py) (Data utilities), [`api/index.py`](https://github.com/jfernandora/io1_tracking/blob/main/api/index.py) (API entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Student interface"]
  node_planner_ui["Planner interface<br/>[app.js]"]
  node_pdf_export["PDF export<br/>[pdf.js]"]
end

subgraph group_api["API orchestration"]
  node_api_entry["API entry<br/>[index.py]"]
  node_api_server["API server<br/>[server.py]"]
  node_data_helpers["Data utilities<br/>[utilidades.py]"]
end

subgraph group_planning["Planning engine"]
  node_course_preparation["Course preparation<br/>[ruta_optima.py]"]
  node_route_scheduler["Route scheduler<br/>[ruta_optima.py]"]
end

subgraph group_data["Curriculum data"]
  node_curriculum_files["Curriculum files"]
  node_vacation_schedule["Vacation schedule"]
end

node_student(("Student"))

node_student -->|"sets preferences"| node_planner_ui
node_planner_ui -->|"loads curriculum"| node_api_server
node_planner_ui -->|"requests plan"| node_api_server
node_api_entry -->|"imports app"| node_api_server
node_api_server -->|"serves frontend"| node_planner_ui
node_api_server -->|"loads data"| node_data_helpers
node_data_helpers -->|"reads curricula"| node_curriculum_files
node_data_helpers -->|"reads schedule"| node_vacation_schedule
node_api_server -->|"prepares courses"| node_course_preparation
node_api_server -->|"calculates route"| node_route_scheduler
node_api_server -->|"returns plan"| node_planner_ui
node_planner_ui -->|"exports result"| node_pdf_export

click node_planner_ui "https://github.com/jfernandora/io1_tracking/blob/main/frontend/js/app.js"
click node_pdf_export "https://github.com/jfernandora/io1_tracking/blob/main/frontend/js/pdf.js"
click node_api_entry "https://github.com/jfernandora/io1_tracking/blob/main/api/index.py"
click node_api_server "https://github.com/jfernandora/io1_tracking/blob/main/backend/server.py"
click node_data_helpers "https://github.com/jfernandora/io1_tracking/blob/main/backend/utilidades.py"
click node_course_preparation "https://github.com/jfernandora/io1_tracking/blob/main/backend/ruta_optima.py"
click node_route_scheduler "https://github.com/jfernandora/io1_tracking/blob/main/backend/ruta_optima.py"
click node_curriculum_files "https://github.com/jfernandora/io1_tracking/tree/main/backend/data"
click node_vacation_schedule "https://github.com/jfernandora/io1_tracking/blob/main/backend/data/horarios_vacaciones.json"

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_planner_ui,node_pdf_export toneBlue
class node_api_entry,node_api_server,node_data_helpers toneAmber
class node_course_preparation,node_route_scheduler toneMint
class node_curriculum_files,node_vacation_schedule toneRose
class node_student toneIndigo
```

## Components

### Student interface

- [Planner interface](https://github.com/jfernandora/io1_tracking/blob/main/frontend/js/app.js): `frontend/js/app.js`
- [PDF export](https://github.com/jfernandora/io1_tracking/blob/main/frontend/js/pdf.js): `frontend/js/pdf.js`

### API orchestration

- [API entry](https://github.com/jfernandora/io1_tracking/blob/main/api/index.py): `api/index.py`
- [API server](https://github.com/jfernandora/io1_tracking/blob/main/backend/server.py): `backend/server.py`
- [Data utilities](https://github.com/jfernandora/io1_tracking/blob/main/backend/utilidades.py): `backend/utilidades.py`

### Planning engine

- [Course preparation](https://github.com/jfernandora/io1_tracking/blob/main/backend/ruta_optima.py): `backend/ruta_optima.py`
- [Route scheduler](https://github.com/jfernandora/io1_tracking/blob/main/backend/ruta_optima.py): `backend/ruta_optima.py`

### Curriculum data

- [Curriculum files](https://github.com/jfernandora/io1_tracking/tree/main/backend/data): `backend/data`
- [Vacation schedule](https://github.com/jfernandora/io1_tracking/blob/main/backend/data/horarios_vacaciones.json): `backend/data/horarios_vacaciones.json`

### Other components

- **Student**

## Connections

- Student → Planner interface: sets preferences (evidence: `frontend/js/app.js`)
- Planner interface → API server: loads curriculum (evidence: `frontend/js/app.js`)
- Planner interface → API server: requests plan (evidence: `frontend/js/app.js`)
- API entry → API server: imports app (evidence: `api/index.py`)
- API server → Planner interface: serves frontend (evidence: `backend/server.py`)
- API server → Data utilities: loads data (evidence: `backend/server.py`)
- Data utilities → Curriculum files: reads curricula (evidence: `backend/utilidades.py`)
- Data utilities → Vacation schedule: reads schedule (evidence: `backend/utilidades.py`)
- API server → Course preparation: prepares courses (evidence: `backend/server.py`)
- API server → Route scheduler: calculates route (evidence: `backend/server.py`)
- API server → Planner interface: returns plan (evidence: `frontend/js/app.js`)
- Planner interface → PDF export: exports result (evidence: `frontend/js/app.js`)
