# joel-santos/turma115-uc07 architecture

> Architecture diagram of the GitHub repository joel-santos/turma115-uc07, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joel-santos/turma115-uc07
- Repository: https://github.com/joel-santos/turma115-uc07

## Overview

##### Project type and purpose
- This repository is a **teaching/course project** (“UC07: Desenvolver Aplicações Web”) containing multiple sub‑projects and exercises.
- It includes:
- Static HTML/CSS/JS examples (e.g., aula04‑02, aula27‑01, etc.)
- React single‑page applications (e.g., aula11‑03, aula18‑03, aula25‑03, projeto‑crud‑evento)
- A Node.js/Express backend for one full‑stack sample (aula08‑04/back‑end) paired with a React front‑end (aula08‑04/front‑end)

##### File structure
- Top‑level folders are by lesson number (aula04‑02, aula08‑04, …, projeto‑crud‑evento).
- Within each lesson:
- Static examples: “css/” and “html/” subfolders.
- React apps: “public/”, “src/” with components, pages, assets, and build config (vite.config.js, package.json).
- Full‑stack (aula08‑04): distinct “back‑end/” and “front‑end/” directories.

##### README for additional insights
- Confirms the repo’s goal is instructional: teaching HTML, CSS, JS and React, plus Git usage.
- No overarching deployment or microservice architecture—each lesson is self‑contained.

##### Elements
- **Labels**: Lesson names (aula04‑02, aula08‑04, projeto‑crud‑evento, etc.) and component names (Controller, Model, Page, Component)
- Browser → Static files
- SPA → Data source (JS module or API)
- Front‑end → Back‑end → Database
- Rectangles for folders/modules
- Clouds for external tools (GitHub, browser)

##### Detailed capture of architecture
- For aula08‑04 full‑stack: show Express server, alunoController → alunoModel → DB, and front‑end Axios calls.
- For projeto‑crud‑evento: show SPA components (EventoCard, EventoForm) interacting with database.js.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Static Exercises
    subgraph "Static HTML/CSS Exercises"
        classDef static fill:#e0f7e9,stroke:#27ae60
        A1["aula04-02/html/index.html"]:::static
        A2["aula04-02/css/style.css"]:::static
        A3["aula27-01/exemplo-landing-page.html"]:::static
        A4["aula27-01/style2.css"]:::static
        A1 -->|"loaded by"| Browser
        A2 -->|"styled by"| Browser
        A3 -->|"loaded by"| Browser
        A4 -->|"styled by"| Browser
    end

    %% React SPAs
    subgraph "React SPA Lessons"
        classDef react fill:#dcecff,stroke:#3498db
        subgraph "Aula 11-03 Revisão"
            B1["src/"]:::react
            B2["public/"]:::react
            B3["vite.config.js"]:::react
            B4["eslint.config.js"]:::react
            B5["package.json"]:::react
            B1 -->|"bundled by"| B3
        end
        subgraph "Aula 11-03 Tarefa01"
            C1["src/"]:::react
            C2["public/"]:::react
            C3["vite.config.js"]:::react
            C4["eslint.config.js"]:::react
            C5["package.json"]:::react
            C1 -->|"bundled by"| C3
        end
        subgraph "Aula 18-03"
            D1["src/"]:::react
            D2["public/"]:::react
            D3["vite.config.js"]:::react
            D4["eslint.config.js"]:::react
            D5["package.json"]:::react
            D1 -->|"bundled by"| D3
        end
        subgraph "Aula 25-03 Calculadora"
            E1["calculadora/src/"]:::react
            E2["calculadora/public/"]:::react
            E3["calculadora/vite.config.js"]:::react
            E4["calculadora/eslint.config.js"]:::react
            E5["calculadora/package.json"]:::react
            E1 -->|"bundled by"| E3
        end
        subgraph "Aula 25-03 Darkmode"
            F1["darkmode/src/"]:::react
            F2["darkmode/public/"]:::react
            F3["darkmode/vite.config.js"]:::react
            F4["darkmode/eslint.config.js"]:::react
            F5["darkmode/package.json"]:::react
            F1 -->|"bundled by"| F3
        end
    end

    %% Full-Stack Sample
    subgraph "Full-Stack Sample (aula08-04)"
        classDef fullstack fill:#ffe6e6,stroke:#e74c3c
        subgraph "Front-End"
            G1["src/"]:::fullstack
            G2["public/"]:::fullstack
            G3["vite.config.js"]:::fullstack
            G4["eslint.config.js"]:::fullstack
            G5["package.json"]:::fullstack
        end
        subgraph "Back-End"
            H1["index.js"]:::fullstack
            H2["controllers/alunoController.js"]:::fullstack
            H3["model/alunoModel.js"]:::fullstack
            H4["routes/alunoRoutes.js"]:::fullstack
            H5["config/database.js"]:::fullstack
        end
        G1 -->|"HTTP requests via Axios"| H1
        H2 -->|"uses"| H3
        H3 -->|"queries"| H5
    end

    %% Projeto CRUD Evento
    subgraph "Projeto CRUD Evento"
        classDef crud fill:#f9e79f,stroke:#f1c40f
        I1["src/"]:::crud
        I2["database.js"]:::crud
        I3["vite.config.js"]:::crud
        I4["eslint.config.js"]:::crud
        I5["package.json"]:::crud
        I1 -->|"imports"| I2
    end

    %% Browser and Tools
    Browser(("Browser")):::external
    subgraph "Build & Tooling"
        classDef tooling fill:#d5d8dc,stroke:#7f8c8d
        T1["Vite"]:::tooling
        T2["ESLint"]:::tooling
        T3["npm"]:::tooling
        T4["GitHub (README.md)"]:::tooling
    end
    B1 -->|"dev server"| T1
    C1 -->|"dev server"| T1
    D1 -->|"dev server"| T1
    E1 -->|"dev server"| T1
    F1 -->|"dev server"| T1
    G1 -->|"dev server"| T1
    I1 -->|"dev server"| T1

    %% Click Events
    click A1 "https://github.com/joel-santos/turma115-uc07/blob/main/aula04-02/atividade/html/index.html"
    click A2 "https://github.com/joel-santos/turma115-uc07/blob/main/aula04-02/atividade/css/style.css"
    click A3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula27-01/exemplo-landing-page.html"
    click A4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula27-01/style2.css"
    click B1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula11-03/aula-revisao/src/"
    click B2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula11-03/aula-revisao/public/"
    click B3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/aula-revisao/vite.config.js"
    click B4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/aula-revisao/eslint.config.js"
    click B5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/aula-revisao/package.json"
    click C1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula11-03/tarefa01/src/"
    click C2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula11-03/tarefa01/public/"
    click C3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/tarefa01/vite.config.js"
    click C4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/tarefa01/eslint.config.js"
    click C5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula11-03/tarefa01/package.json"
    click D1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula18-03/src/"
    click D2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula18-03/public/"
    click D3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula18-03/vite.config.js"
    click D4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula18-03/eslint.config.js"
    click D5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula18-03/package.json"
    click E1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula25-03/calculadora/src/"
    click E2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula25-03/calculadora/public/"
    click E3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/calculadora/vite.config.js"
    click E4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/calculadora/eslint.config.js"
    click E5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/calculadora/package.json"
    click F1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula25-03/darkmode/src/"
    click F2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula25-03/darkmode/public/"
    click F3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/darkmode/vite.config.js"
    click F4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/darkmode/eslint.config.js"
    click F5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula25-03/darkmode/package.json"
    click G1 "https://github.com/joel-santos/turma115-uc07/tree/main/aula08-04/front-end/src/"
    click G2 "https://github.com/joel-santos/turma115-uc07/tree/main/aula08-04/front-end/public/"
    click G3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/front-end/vite.config.js"
    click G4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/front-end/eslint.config.js"
    click G5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/front-end/package.json"
    click H1 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/back-end/index.js"
    click H2 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/back-end/controllers/alunoController.js"
    click H3 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/back-end/model/alunoModel.js"
    click H4 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/back-end/routes/alunoRoutes.js"
    click H5 "https://github.com/joel-santos/turma115-uc07/blob/main/aula08-04/back-end/config/database.js"
    click I1 "https://github.com/joel-santos/turma115-uc07/tree/main/projeto-crud-evento/src/"
    click I2 "https://github.com/joel-santos/turma115-uc07/blob/main/projeto-crud-evento/src/data/database.js"
    click I3 "https://github.com/joel-santos/turma115-uc07/blob/main/projeto-crud-evento/vite.config.js"
    click I4 "https://github.com/joel-santos/turma115-uc07/blob/main/projeto-crud-evento/eslint.config.js"
    click I5 "https://github.com/joel-santos/turma115-uc07/blob/main/projeto-crud-evento/package.json"

    %% Styles
    classDef external fill:#f0f0f0,stroke:#34495e,stroke-dasharray: 5 5
    class A1,A2,A3,A4 static
    class B1,B2,B3,B4,B5 react
    class C1,C2,C3,C4,C5 react
    class D1,D2,D3,D4,D5 react
    class E1,E2,E3,E4,E5 react
    class F1,F2,F3,F4,F5 react
    class G1,G2,G3,G4,G5 fullstack
    class H1,H2,H3,H4,H5 fullstack
    class I1,I2,I3,I4,I5 crud
    class T1,T2,T3,T4 tooling
```
