# tyr4/unihack-2025 architecture

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

- Interactive diagram: https://gitdiagram.com/tyr4/unihack-2025
- Repository: https://github.com/tyr4/unihack-2025

## Overview

This is a Django public-information portal with pages for transit, bus routes, restaurants, hotels, alerts, weather and complaints, plus a panel route. The visible backend workflow is URL dispatch to page-rendering views; data models and forms cover vehicles, alerts, complaints and login records. Browser scripts implement page interactions, but the excerpts do not show how pages load them or connect them to backend data. The README is empty, and template contents and several helpers are not shown, so those relationships are omitted.

Main entry points: [`TVA/forms.py`](https://github.com/tyr4/unihack-2025/blob/main/TVA/forms.py) (Model forms), [`TVA/urls.py`](https://github.com/tyr4/unihack-2025/blob/main/TVA/urls.py) (Public routes), [`TVA/views.py`](https://github.com/tyr4/unihack-2025/blob/main/TVA/views.py) (Page handlers), [`dashboard/views.py`](https://github.com/tyr4/unihack-2025/blob/main/dashboard/views.py) (Panel views)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web access"]
  node_routes["Public routes<br/>[urls.py]"]
  node_pages["Page handlers<br/>[views.py]"]
  node_dashboard_routes["Panel route<br/>[urls.py]"]
  node_dashboard_views["Panel views<br/>[views.py]"]
end

subgraph group_public["Public information"]
  node_bus_ui["Bus interface<br/>[bus.js]"]
  node_bus_map["Bus map<br/>[bus_map.js]"]
  node_restaurants["Restaurant interface<br/>[restaurants.js]"]
  node_hotels["Hotel interface<br/>[hotels.js]"]
  node_carousel["Landing carousel<br/>[index.js]"]
  node_panel_ui["Panel interface<br/>[panel.js]"]
end

subgraph group_civic["Civic data"]
  node_alerts_data[("Alerts records<br/>[models.py]")]
  node_complaints_data[("Complaint records<br/>[models.py]")]
  node_vehicle_data[("Vehicle records<br/>[models.py]")]
  node_login_data[("Login records<br/>[models.py]")]
  node_forms["Model forms<br/>[forms.py]"]
  node_helpers["Application helpers<br/>[helpers.py]"]
end

node_visitor(("Visitor"))

node_visitor -->|"requests page"| node_routes
node_routes -->|"dispatches to"| node_pages
node_pages -->|"renders panel"| node_dashboard_views
node_dashboard_routes -->|"dispatches to"| node_dashboard_views
node_forms -->|"models"| node_vehicle_data
node_forms -->|"models"| node_alerts_data
node_forms -->|"models"| node_complaints_data
node_forms -->|"models"| node_login_data

click node_routes "https://github.com/tyr4/unihack-2025/blob/main/TVA/urls.py"
click node_pages "https://github.com/tyr4/unihack-2025/blob/main/TVA/views.py"
click node_dashboard_routes "https://github.com/tyr4/unihack-2025/blob/main/dashboard/urls.py"
click node_dashboard_views "https://github.com/tyr4/unihack-2025/blob/main/dashboard/views.py"
click node_bus_ui "https://github.com/tyr4/unihack-2025/blob/main/frontend/bus.js"
click node_bus_map "https://github.com/tyr4/unihack-2025/blob/main/static/js/bus_map.js"
click node_restaurants "https://github.com/tyr4/unihack-2025/blob/main/frontend/restaurants.js"
click node_hotels "https://github.com/tyr4/unihack-2025/blob/main/static/js/hotels.js"
click node_carousel "https://github.com/tyr4/unihack-2025/blob/main/frontend/index.js"
click node_panel_ui "https://github.com/tyr4/unihack-2025/blob/main/static/js/panel.js"
click node_alerts_data "https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py"
click node_complaints_data "https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py"
click node_vehicle_data "https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py"
click node_login_data "https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py"
click node_forms "https://github.com/tyr4/unihack-2025/blob/main/TVA/forms.py"
click node_helpers "https://github.com/tyr4/unihack-2025/blob/main/TVA/helpers.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_routes,node_pages,node_dashboard_routes,node_dashboard_views toneBlue
class node_bus_ui,node_bus_map,node_restaurants,node_hotels,node_carousel,node_panel_ui toneAmber
class node_alerts_data,node_complaints_data,node_vehicle_data,node_login_data,node_forms,node_helpers toneMint
class node_visitor toneIndigo
```

## Components

### Web access

- [Public routes](https://github.com/tyr4/unihack-2025/blob/main/TVA/urls.py): `TVA/urls.py`
- [Page handlers](https://github.com/tyr4/unihack-2025/blob/main/TVA/views.py): `TVA/views.py`
- [Panel route](https://github.com/tyr4/unihack-2025/blob/main/dashboard/urls.py): `dashboard/urls.py`
- [Panel views](https://github.com/tyr4/unihack-2025/blob/main/dashboard/views.py): `dashboard/views.py`

### Public information

- [Bus interface](https://github.com/tyr4/unihack-2025/blob/main/frontend/bus.js): `frontend/bus.js`
- [Bus map](https://github.com/tyr4/unihack-2025/blob/main/static/js/bus_map.js): `static/js/bus_map.js`
- [Restaurant interface](https://github.com/tyr4/unihack-2025/blob/main/frontend/restaurants.js): `frontend/restaurants.js`
- [Hotel interface](https://github.com/tyr4/unihack-2025/blob/main/static/js/hotels.js): `static/js/hotels.js`
- [Landing carousel](https://github.com/tyr4/unihack-2025/blob/main/frontend/index.js): `frontend/index.js`
- [Panel interface](https://github.com/tyr4/unihack-2025/blob/main/static/js/panel.js): `static/js/panel.js`

### Civic data

- [Alerts records](https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py): `TVA/models.py`
- [Complaint records](https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py): `TVA/models.py`
- [Vehicle records](https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py): `TVA/models.py`
- [Login records](https://github.com/tyr4/unihack-2025/blob/main/TVA/models.py): `TVA/models.py`
- [Model forms](https://github.com/tyr4/unihack-2025/blob/main/TVA/forms.py): `TVA/forms.py`
- [Application helpers](https://github.com/tyr4/unihack-2025/blob/main/TVA/helpers.py): `TVA/helpers.py`

### Other components

- **Visitor**

## Connections

- Visitor → Public routes: requests page (evidence: `TVA/urls.py`)
- Public routes → Page handlers: dispatches to (evidence: `TVA/urls.py`)
- Page handlers → Panel views: renders panel (evidence: `TVA/views.py`)
- Panel route → Panel views: dispatches to (evidence: `dashboard/urls.py`)
- Model forms → Vehicle records: models (evidence: `TVA/forms.py`)
- Model forms → Alerts records: models (evidence: `TVA/forms.py`)
- Model forms → Complaint records: models (evidence: `TVA/forms.py`)
- Model forms → Login records: models (evidence: `TVA/forms.py`)
