# ttcheng26/mywebsite architecture

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

- Interactive diagram: https://gitdiagram.com/ttcheng26/mywebsite
- Repository: https://github.com/ttcheng26/mywebsite

## Overview

Alan’s World is a Flask-backed personal website with a contact form. The visitor-facing page is rendered by Flask; its frontend sends submitted contact details as JSON to the backend, which emails them through Gmail SMTP and returns a status. The README also describes responsive HTML/CSS/JavaScript, but the template and asset contents were not sampled, so their individual wiring is not shown. Deployment files are omitted as delivery infrastructure rather than runtime product components.

Main entry points: [`app.py`](https://github.com/ttcheng26/mywebsite/blob/main/app.py) (Flask app), [`templates/index.html`](https://github.com/ttcheng26/mywebsite/blob/main/templates/index.html) (Website page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Website frontend"]
  node_page["Website page<br/>[index.html]"]
  node_styles["Responsive styles<br/>[style.css]"]
  node_scripts["Contact form script<br/>[script.js]"]
end

subgraph group_backend["Flask backend"]
  node_flask["Flask app<br/>[app.py]"]
end

subgraph group_external["External services"]
  node_gmail["Gmail SMTP"]
end

node_visitor(("Website visitor"))

node_flask -->|"renders"| node_page
node_page -->|"POSTs JSON"| node_flask
node_flask -->|"sends email"| node_gmail
node_flask -->|"returns status"| node_visitor

click node_page "https://github.com/ttcheng26/mywebsite/blob/main/templates/index.html"
click node_styles "https://github.com/ttcheng26/mywebsite/blob/main/assets/css/style.css"
click node_scripts "https://github.com/ttcheng26/mywebsite/blob/main/assets/js/script.js"
click node_flask "https://github.com/ttcheng26/mywebsite/blob/main/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_page,node_styles,node_scripts toneBlue
class node_flask toneAmber
class node_gmail toneMint
class node_visitor toneIndigo
```

## Components

### Website frontend

- [Website page](https://github.com/ttcheng26/mywebsite/blob/main/templates/index.html): `templates/index.html`
- [Responsive styles](https://github.com/ttcheng26/mywebsite/blob/main/assets/css/style.css): `assets/css/style.css`
- [Contact form script](https://github.com/ttcheng26/mywebsite/blob/main/assets/js/script.js): `assets/js/script.js`

### Flask backend

- [Flask app](https://github.com/ttcheng26/mywebsite/blob/main/app.py): `app.py`

### External services

- **Gmail SMTP**

### Other components

- **Website visitor**

## Connections

- Flask app → Website page: renders (evidence: `app.py`)
- Website page → Flask app: POSTs JSON (evidence: `README.md`)
- Flask app → Gmail SMTP: sends email (evidence: `app.py`)
- Flask app → Website visitor: returns status (evidence: `app.py`)
