# k2kumarit-boop/repo2 architecture

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

- Interactive diagram: https://gitdiagram.com/k2kumarit-boop/repo2
- Repository: https://github.com/k2kumarit-boop/repo2

## Overview

This small Flask plant-catalogue app serves a home page with featured plants, a full plant listing, and a contact form. Requests enter through Flask routes; each view renders its corresponding template. The contact view validates submitted fields and flashes a message or redirects after success. The source excerpt shows these route and rendering relationships; template internals and stylesheet wiring were not inspected.

Main entry points: [`app.py`](https://github.com/k2kumarit-boop/repo2/blob/main/app.py) (Flask app), [`templates/home.html`](https://github.com/k2kumarit-boop/repo2/blob/main/templates/home.html) (Home template), [`templates/plants.html`](https://github.com/k2kumarit-boop/repo2/blob/main/templates/plants.html) (Plants template), [`templates/contact.html`](https://github.com/k2kumarit-boop/repo2/blob/main/templates/contact.html) (Contact template)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_visitor(("Visitor"))
node_flask["Flask app<br/>[app.py]"]
node_home["Home view<br/>[app.py]"]
node_plants["Plant listing<br/>[app.py]"]
node_contact["Contact handler<br/>[app.py]"]
node_home_template["Home template<br/>[home.html]"]
node_plants_template["Plants template<br/>[plants.html]"]
node_contact_template["Contact template<br/>[contact.html]"]

node_visitor -->|"sends requests"| node_flask
node_flask -->|"dispatches"| node_home
node_flask -->|"dispatches"| node_plants
node_flask -->|"dispatches"| node_contact
node_home -->|"renders"| node_home_template
node_plants -->|"renders"| node_plants_template
node_contact -->|"renders"| node_contact_template

click node_flask "https://github.com/k2kumarit-boop/repo2/blob/main/app.py"
click node_home "https://github.com/k2kumarit-boop/repo2/blob/main/app.py"
click node_plants "https://github.com/k2kumarit-boop/repo2/blob/main/app.py"
click node_contact "https://github.com/k2kumarit-boop/repo2/blob/main/app.py"
click node_home_template "https://github.com/k2kumarit-boop/repo2/blob/main/templates/home.html"
click node_plants_template "https://github.com/k2kumarit-boop/repo2/blob/main/templates/plants.html"
click node_contact_template "https://github.com/k2kumarit-boop/repo2/blob/main/templates/contact.html"

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_visitor toneIndigo
class node_flask,node_plants,node_home_template,node_plants_template,node_contact_template toneTeal
class node_home toneBlue
class node_contact toneMint
```

## Components

### Other components

- **Visitor**
- [Flask app](https://github.com/k2kumarit-boop/repo2/blob/main/app.py): `app.py`
- [Home view](https://github.com/k2kumarit-boop/repo2/blob/main/app.py): `app.py`
- [Plant listing](https://github.com/k2kumarit-boop/repo2/blob/main/app.py): `app.py`
- [Contact handler](https://github.com/k2kumarit-boop/repo2/blob/main/app.py): `app.py`
- [Home template](https://github.com/k2kumarit-boop/repo2/blob/main/templates/home.html): `templates/home.html`
- [Plants template](https://github.com/k2kumarit-boop/repo2/blob/main/templates/plants.html): `templates/plants.html`
- [Contact template](https://github.com/k2kumarit-boop/repo2/blob/main/templates/contact.html): `templates/contact.html`

## Connections

- Visitor → Flask app: sends requests (evidence: `app.py`)
- Flask app → Home view: dispatches (evidence: `app.py`)
- Flask app → Plant listing: dispatches (evidence: `app.py`)
- Flask app → Contact handler: dispatches (evidence: `app.py`)
- Home view → Home template: renders (evidence: `app.py`)
- Plant listing → Plants template: renders (evidence: `app.py`)
- Contact handler → Contact template: renders (evidence: `app.py`)
