# apolo242424/landing-page-uml architecture

> Architecture diagram of the GitHub repository apolo242424/landing-page-uml, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-08-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/apolo242424/landing-page-uml
- Repository: https://github.com/apolo242424/landing-page-uml

## Overview

##### Project Type and Purpose
- This is a simple full-stack web application (landing page) built with Python and Flask.
- It serves a home page and a products page, renders Jinja2 templates, and delivers CSS/images from a static folder.
- It’s structured for deployment on a PaaS like Heroku (Procfile, runtime.txt).

##### File-Structure Analysis
- Top-level:
- app.py – Flask application with routing logic
- requirements.txt / runtime.txt – Python dependencies and runtime version
- Procfile – Heroku process declaration (likely `web: gunicorn app:app`)
- .gitignore, .idea – IDE and VCS configs
- Directories:
- templates/ – Jinja2 HTML templates (index.html, productos.html)
- static/css/ – style.css
- static/imagenes/ – image assets (camisas, tazas, logo, otros)

##### Key Components
a. Client (Web Browser)
b. Heroku Router / HTTPS Load Balancer (if deploying)
c. Dyno / Application Server
– Gunicorn (Procfile)
– Flask App (app.py)
– Jinja2 Template Engine
d. Static File Service
– CSS
– Images
e. (Optional) GitHub or Git Repo – source control
f. (Optional) Logging / Monitoring add-ons

##### Relationships and Interactions
- Browser → HTTPS → Heroku Router
- Router → Dyno (Gunicorn) → Flask app
- Flask routes:
- “/” → render_template(“index.html”)
- “/productos” → render_template(“productos.html”)
- Templates pull in static assets via `/static/css/style.css` and `/static/imagenes/...`
- Responses (HTML/CSS/Images) flow back to Browser

##### Architectural Patterns and Principles
- MVC-lite:
- Controller = Flask routes in app.py
- View = Jinja2 templates + static assets
- Model = n/a (no database)
- 12-factor app principles (config in runtime.txt/Procfile, dependencies in requirements.txt)
- Separation of concerns: routing, templating, static delivery

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client Layer
    Browser["Web Browser"]:::client

    %% PaaS Layer
    HerokuRouter["Heroku Router/Load Balancer"]:::server
    Dyno["Dyno (Gunicorn Entry Point)"]:::server
    Gunicorn["Gunicorn"]:::server

    %% Application Layer
    FlaskApp["Flask App (app.py)"]:::server
    TemplateEngine["Jinja2 Template Engine"]:::server

    %% View Layer
    IndexTemplate["templates/index.html"]:::static
    ProductosTemplate["templates/productos.html"]:::static

    %% Static File Service
    StaticCSS["static/css/style.css"]:::static
    StaticImages["static/imagenes/"]:::static

    %% Config & Repo
    Requirements["requirements.txt"]:::config
    Runtime["runtime.txt"]:::config
    ProcfileConfig["Procfile"]:::config
    Repo[".gitignore, README.md"]:::repo
    IDE[".idea"]:::repo

    %% Flows
    Browser -->|"HTTPS GET /"| HerokuRouter
    HerokuRouter -->|"Route to Dyno"| Dyno
    Dyno -->|"start Gunicorn"| Gunicorn
    Gunicorn -->|"wsgi call"| FlaskApp

    FlaskApp -->|"render_template('/')"| TemplateEngine
    TemplateEngine -->|"load index.html"| IndexTemplate
    FlaskApp -->|"render_template('/productos')"| TemplateEngine
    TemplateEngine -->|"load productos.html"| ProductosTemplate
    FlaskApp -->|"200 HTML"| Browser

    Browser -->|"GET /static/css/style.css"| StaticCSS
    StaticCSS -->|"200 CSS"| Browser

    Browser -->|"GET /static/imagenes/*"| StaticImages
    StaticImages -->|"200 Images"| Browser

    %% Config and Repo Relationships
    FlaskApp -.-> Requirements
    FlaskApp -.-> Runtime
    Dyno -.-> ProcfileConfig
    Dyno -.-> Requirements
    Repo -.-> FlaskApp
    Repo -.-> ProcfileConfig
    IDE -.-> FlaskApp

    %% Click Events
    click FlaskApp "https://github.com/apolo242424/landing-page-uml/blob/main/app.py"
    click ProcfileConfig "https://github.com/apolo242424/landing-page-uml/tree/main/Procfile"
    click Requirements "https://github.com/apolo242424/landing-page-uml/blob/main/requirements.txt"
    click Runtime "https://github.com/apolo242424/landing-page-uml/blob/main/runtime.txt"
    click IndexTemplate "https://github.com/apolo242424/landing-page-uml/blob/main/templates/index.html"
    click ProductosTemplate "https://github.com/apolo242424/landing-page-uml/blob/main/templates/productos.html"
    click StaticCSS "https://github.com/apolo242424/landing-page-uml/blob/main/static/css/style.css"
    click StaticImages "https://github.com/apolo242424/landing-page-uml/tree/main/static/imagenes/"
    click Repo "https://github.com/apolo242424/landing-page-uml/blob/main/.gitignore"
    click IDE "https://github.com/apolo242424/landing-page-uml/blob/main/.idea"

    %% Styles
    classDef client fill:#D0E8FF,stroke:#0366D6,color:#0366D6;
    classDef server fill:#E2F0D9,stroke:#2E7D32,color:#2E7D32;
    classDef static fill:#F0F0F0,stroke:#555555,color:#555555;
    classDef config fill:#FFF4E5,stroke:#FF8C00,color:#FF8C00;
    classDef repo fill:#F3E5F5,stroke:#6A1B9A,color:#6A1B9A;
```
