# nugallan/curso-python-web-mouredev architecture

> Architecture diagram of the GitHub repository nugallan/curso-python-web-mouredev, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nugallan/curso-python-web-mouredev
- Repository: https://github.com/nugallan/curso-python-web-mouredev

## Overview

##### Project type and purpose
- This is a “link in bio” personal website, implemented as a static web application.
- The core code is written in Python using the Reflex framework (version 0.7.2+), which compiles declarative Python UI components into a React/Next.js static site.

##### File structure
- Top-level source (`link_bio/`):
- components/ – small UI pieces (buttons, navbar, footer, etc.)
- pages/ – high-level page definitions (index, courses)
- views/ – data-driven assemblies of components
- routes.py, utils.py, link_bio.py – Reflex app entrypoint and routing
- Build/config files:
- rxconfig.py – Reflex build configuration
- local_build.sh, remote_build.sh – convenience scripts
- Dockerfile & .dockerignore – containerization for production or CI
- .github/workflows/static_build.yml – GitHub Actions for automated static build
- Output folder (`public/`):
- _next/static/... – Next.js build artifacts (JS bundles, CSS)
- index.html, cursos/index.html, 404 pages, sitemap, robots.txt – final static assets

##### README
- Confirms: Python 3.12+, Reflex 0.7.2+, Apache 2.0 license.
- Purpose: “Sitio web personal estilo ‹link in bio›.”

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Developer Code"
        UIComp["UI Components"]:::code
        Pages["Pages Definitions"]:::code
        Views["Views Assemblies"]:::code
        subgraph "Theme Constants & Styles"
            ConstFile["constants.py"]:::code
            Colors["styles/colors.py"]:::code
            Fonts["styles/fonts.py"]:::code
            StylesFile["styles/styles.py"]:::code
        end
        Routes["routes.py"]:::code
        Utils["utils.py"]:::code
        Entrypoint["Reflex App Entrypoint"]:::code
    end

    Entrypoint -->|uses rxconfig| Compiler["Reflex Compiler & rxconfig.py"]:::build
    Compiler -->|reflex build; reflex export| BuildScripts["Build Scripts / Docker Container"]:::build
    subgraph "Build Scripts / Docker Container"
        LocalBuild["local_build.sh"]:::build
        RemoteBuild["remote_build.sh"]:::build
        Dockerfile["Dockerfile"]:::build
        Dockerignore[".dockerignore"]:::build
    end

    CI["GitHub Actions CI/CD"]:::ci
    CI -->|Trigger Build on Push| BuildScripts

    BuildScripts -->|Generate static assets| Public["public/ (Static Assets)"]:::build
    Public -->|Deploy| Host["Hosting (CDN)"]:::hosting
    Host -->|HTTP GET| Browser["End User Browser"]:::client

    click UIComp "https://github.com/nugallan/curso-python-web-mouredev/tree/main/link_bio/components/"
    click Pages "https://github.com/nugallan/curso-python-web-mouredev/tree/main/link_bio/pages/"
    click Views "https://github.com/nugallan/curso-python-web-mouredev/tree/main/link_bio/views/"
    click ConstFile "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/constants.py"
    click Colors "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/styles/colors.py"
    click Fonts "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/styles/fonts.py"
    click StylesFile "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/styles/styles.py"
    click Routes "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/routes.py"
    click Utils "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/utils.py"
    click Entrypoint "https://github.com/nugallan/curso-python-web-mouredev/blob/main/link_bio/link_bio.py"
    click Compiler "https://github.com/nugallan/curso-python-web-mouredev/blob/main/rxconfig.py"
    click LocalBuild "https://github.com/nugallan/curso-python-web-mouredev/blob/main/local_build.sh"
    click RemoteBuild "https://github.com/nugallan/curso-python-web-mouredev/blob/main/remote_build.sh"
    click Dockerfile "https://github.com/nugallan/curso-python-web-mouredev/tree/main/Dockerfile"
    click Dockerignore "https://github.com/nugallan/curso-python-web-mouredev/blob/main/.dockerignore"
    click CI "https://github.com/nugallan/curso-python-web-mouredev/blob/main/.github/workflows/static_build.yml"
    click Public "https://github.com/nugallan/curso-python-web-mouredev/tree/main/public/"

    classDef code fill:#CDE8FF,stroke:#0366D6
    classDef build fill:#D5F5E1,stroke:#28A745
    classDef ci fill:#FFE5B4,stroke:#D2691E
    classDef hosting fill:#E6E6FA,stroke:#800080
    classDef client fill:#E8E8E8,stroke:#A9A9A9
```
