# debby531/412630708_tkucvt architecture

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

- Interactive diagram: https://gitdiagram.com/debby531/412630708_tkucvt
- Repository: https://github.com/debby531/412630708_tkucvt

## Overview

This repository includes coursework materials and a small Flask service. The service handles requests at `/` and `/healthz`, opens PostgreSQL connections from environment settings, and runs a query for each endpoint. The excerpts show the service and database interactions; the database is an external dependency.

Main entry points: [`final_412630708/app/app.py`](https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py) (Home endpoint)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web service"]
  node_hello["Home endpoint<br/>[app.py]"]
  node_healthz["Health endpoint<br/>[app.py]"]
end

subgraph group_data["Database"]
  node_dbconn["DB connector<br/>[app.py]"]
  node_postgres[("PostgreSQL")]
end

node_client(("HTTP client"))

node_client -->|"requests"| node_hello
node_client -->|"checks"| node_healthz
node_hello -->|"opens connection"| node_dbconn
node_healthz -->|"opens connection"| node_dbconn
node_hello -->|"queries time"| node_postgres
node_healthz -->|"checks query"| node_postgres
node_dbconn -->|"connects"| node_postgres

click node_hello "https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py"
click node_healthz "https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py"
click node_dbconn "https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/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_hello,node_healthz,node_client toneBlue
class node_dbconn,node_postgres toneAmber
```

## Components

### Web service

- [Home endpoint](https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py): `final_412630708/app/app.py`
- [Health endpoint](https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py): `final_412630708/app/app.py`

### Database

- [DB connector](https://github.com/debby531/412630708_tkucvt/blob/main/final_412630708/app/app.py): `final_412630708/app/app.py`
- **PostgreSQL**

### Other components

- **HTTP client**

## Connections

- HTTP client → Home endpoint: requests (evidence: `final_412630708/app/app.py`)
- HTTP client → Health endpoint: checks (evidence: `final_412630708/app/app.py`)
- Home endpoint → DB connector: opens connection (evidence: `final_412630708/app/app.py`)
- Health endpoint → DB connector: opens connection (evidence: `final_412630708/app/app.py`)
- Home endpoint → PostgreSQL: queries time (evidence: `final_412630708/app/app.py`)
- Health endpoint → PostgreSQL: checks query (evidence: `final_412630708/app/app.py`)
- DB connector → PostgreSQL: connects (evidence: `final_412630708/app/app.py`)
