# henriquecatani/weblab architecture

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

- Interactive diagram: https://gitdiagram.com/henriquecatani/weblab
- Repository: https://github.com/henriquecatani/weblab

## Overview

##### Project type and purpose
- This is a static “Web Lab” course repository containing collections of HTML pages and supporting notes.
- There is no dynamic backend or database—just static assets for teaching web fundamentals.

##### File structure
- Top-level files/folders:
- index.html (main landing page)
- Notas/ (author’s personal notes, not served)
- aula-20-03-25/ (sample site pages: contato.html, index.html, sobre.html, receita.html, site1/)
- mecanico/ (mecanico.html demo)
- questionario/ (index.html form example)
- weblab/ (empty placeholder)
- No build scripts, configuration files, or server-side code present.

##### README
- Title “weblab” with a single line: “Arquivos das aulas de Web Lab” confirming it’s a teaching repository of static HTML exercises.

##### Main components
a. Client (Web Browser)
b. Static Web Server or CDN (e.g., Nginx, GitHub Pages, Netlify)
c. File Storage / Git Repository
d. (Optional) Author Workstation with local clone and editors for Notas/ and HTML pages

##### Relationships and data flow
- Browser → HTTP request → Web Server/CDN
- Web Server/CDN → serves static HTML/CSS/JS from File Storage
- Author Workstation → commits/pushes → Git Repository → triggers CI/CD → deploys to Web Server/CDN

##### Architectural patterns and principles
- Static Site Hosting (no server-side logic)
- “Jamstack”-style separation: content is prebuilt or served as static assets
- Version-controlled source in Git; optionally automated deploys

##### Key technologies/frameworks/libraries
- HTML5 (pages under root, aula-20-03-25/, mecanico/, questionario/)
- CSS/JS (if present inline or external)
- Git for source control
- Static hosting platforms (GitHub Pages, Netlify, S3+CloudFront, etc.)

##### Diagramming recommendations
- Use clear labels: “Browser,” “Static Web Server/CDN,” “Git Repo,” “Author Workstation”
- Between Browser and Web Server (HTTP/HTTPS)
- Between Workstation → Repo → CI/CD → Server
- Blue rectangles for runtime components (Browser, CDN)
- Grey parallelogram for Author Workstation

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Components
    Workstation["Author Workstation"]:::workstation
    Repo["Git Repository"]:::storage
    CI["CI/CD Pipeline"]:::process
    Server["Static Web Server/CDN"]:::runtime
    Browser["Web Browser"]:::runtime

    %% Repository Contents
    subgraph "Git Repository"
        R_index["index.html"]:::storage
        subgraph "aula-20-03-25/"
            A_recipe["receita.html"]:::storage
            A_site1["site1/"]:::storage
        end
        subgraph "mecanico/"
            M_demo["mecanico.html"]:::storage
        end
        subgraph "questionario/"
            Q_form["index.html"]:::storage
        end
        Notes["Notas/"]:::notes
        README["README.md"]:::storage
        LICENSE["LICENSE"]:::storage
        WEBLAB["weblab/"]:::storage
    end

    %% Flows
    Workstation -->|"commits/pushes"| Repo
    Repo -->|"triggers"| CI
    CI -->|"deploys"| Server
    Browser -->|"HTTP/HTTPS request"| Server
    Server -->|"serves static assets"| Browser

    %% Click Events
    click R_index "https://github.com/henriquecatani/weblab/blob/main/index.html"
    click A_recipe "https://github.com/henriquecatani/weblab/blob/main/aula-20-03-25/receita.html"
    click A_site1 "https://github.com/henriquecatani/weblab/tree/main/aula-20-03-25/site1/"
    click M_demo "https://github.com/henriquecatani/weblab/blob/main/mecanico/mecanico.html"
    click Q_form "https://github.com/henriquecatani/weblab/blob/main/questionario/index.html"
    click Notes "https://github.com/henriquecatani/weblab/tree/main/Notas/"
    click README "https://github.com/henriquecatani/weblab/blob/main/README.md"

    %% Styles
    classDef workstation fill:#eeeeee,stroke:#888888,stroke-width:1px;
    classDef storage fill:#e0ffe0,stroke:#2d662d,stroke-width:1px,stroke-dasharray: 5 5;
    classDef process fill:#fff2cc,stroke:#b58200,stroke-width:1px;
    classDef runtime fill:#cfe2f3,stroke:#2a4d69,stroke-width:1px;
    classDef notes fill:#f4e1ff,stroke:#8c2d62,stroke-width:1px,stroke-dasharray: 3 3;
```
