# ahmed111hatem/flask_task_manager architecture

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

- Interactive diagram: https://gitdiagram.com/ahmed111hatem/flask_task_manager
- Repository: https://github.com/ahmed111hatem/flask_task_manager

## Overview

This is a small Flask task manager. A user submits a task on the home route; the app saves it and redirects to the task list, which reads and displays saved tasks. A separate POST route deletes a task and redirects to the list. The source shows the route, ORM, and template-rendering calls; the tree and README provide little detail about the templates, so their internal behavior is not represented.

Main entry points: [`To_Do_List.py`](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py) (Task list), [`templates`](https://github.com/ahmed111hatem/flask_task_manager/tree/main/templates) (Page templates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Task routes"]
  node_home["Home and add<br/>[To_Do_List.py]"]
  node_delete["Delete task<br/>[To_Do_List.py]"]
  node_listing["Task list<br/>[To_Do_List.py]"]
end

subgraph group_storage["Task storage and views"]
  node_orm["Task ORM<br/>[To_Do_List.py]"]
  node_database[("SQLite database<br/>[To_Do_List.py]")]
  node_templates["Page templates"]
end

node_user(("User"))

node_user -->|"submits task"| node_home
node_user -->|"requests deletion"| node_delete
node_user -->|"opens list"| node_listing
node_home -->|"creates task"| node_orm
node_home -->|"renders home"| node_templates
node_home -->|"redirects to"| node_listing
node_delete -->|"deletes task"| node_orm
node_delete -->|"redirects to"| node_listing
node_listing -->|"queries tasks"| node_orm
node_listing -->|"renders tasks"| node_templates
node_orm -->|"reads and writes"| node_database

click node_home "https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py"
click node_delete "https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py"
click node_listing "https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py"
click node_orm "https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py"
click node_database "https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py"
click node_templates "https://github.com/ahmed111hatem/flask_task_manager/tree/main/templates"

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_home,node_delete,node_listing,node_user toneBlue
class node_orm,node_database,node_templates toneAmber
```

## Components

### Task routes

- [Home and add](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py): `To_Do_List.py`
- [Delete task](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py): `To_Do_List.py`
- [Task list](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py): `To_Do_List.py`

### Task storage and views

- [Task ORM](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py): `To_Do_List.py`
- [SQLite database](https://github.com/ahmed111hatem/flask_task_manager/blob/main/To_Do_List.py): `To_Do_List.py`
- [Page templates](https://github.com/ahmed111hatem/flask_task_manager/tree/main/templates): `templates`

### Other components

- **User**

## Connections

- User → Home and add: submits task (evidence: `To_Do_List.py`)
- User → Delete task: requests deletion (evidence: `To_Do_List.py`)
- User → Task list: opens list (evidence: `To_Do_List.py`)
- Home and add → Task ORM: creates task (evidence: `To_Do_List.py`)
- Home and add → Page templates: renders home (evidence: `To_Do_List.py`)
- Home and add → Task list: redirects to (evidence: `To_Do_List.py`)
- Delete task → Task ORM: deletes task (evidence: `To_Do_List.py`)
- Delete task → Task list: redirects to (evidence: `To_Do_List.py`)
- Task list → Task ORM: queries tasks (evidence: `To_Do_List.py`)
- Task list → Page templates: renders tasks (evidence: `To_Do_List.py`)
- Task ORM → SQLite database: reads and writes (evidence: `To_Do_List.py`)
