# toti-br/aulas_2020-2 architecture

> Architecture diagram of the GitHub repository toti-br/aulas_2020-2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/toti-br/aulas_2020-2
- Repository: https://github.com/toti-br/aulas_2020-2

## Overview

##### Main Components
- Repository Root: Label it “aulas_2020-2 – Materiais de Aula.”
- Module Directories: Show major branches for each technology or topic. For example:
– Angular (contains multiple Angular lessons and projects)
– HTML (contains static examples, multimedia, etc.)
– CSS (if present)
– JavaScript (or Lógica de Programação, containing various JS examples)

- At the top, put the overall repository. From there, branch out to each major module (Angular, HTML, Lógica de Programação, etc.).
- Within the Angular branch:
- For each Angular project, illustrate typical components:
▪ “src/app” (containing components, modules, and sometimes routing and services)
▪ “src/assets” (static assets)
▪ Configuration files (angular.json, package.json, tsconfig.json, etc.)
- Communication or data flows between components (for instance, services providing data to components, routing directing view changes, etc.).

- For HTML and programming logic lessons:
- That each of these directories comprises examples organized by lesson number (e.g., HTML/aula_3 with PDFs, HTML/aula_4 demo examples).
- That these examples are standalone static pages or JavaScript files that demonstrate specific topics (e.g., conditional expressions, interactivity).

##### Relationships and Data Flow
- That assets (images, styles, etc.) and environment configuration files feed into the runtime behavior of the projects.

##### Architectural Patterns and Technologies
- Mention the use of Angular CLI for Angular projects. Note that each Angular sample naturally follows an MVC-like (Component-Based) pattern – components handle views while services do data processing or state management.
- Common configuration files (angular.json, tsconfig.json, package.json) that indicate build and development processes.
- For HTML examples, note that the files are static examples, sometimes incorporating multimedia (images, audio, or video) as found in the HTML folders.

##### Detail Level
- Do not shy away from including as many components as possible. The goal is to capture the full scope of an educational repository where each lesson folder represents a mini-project.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Repository Root
    R["aulas_2020-2 – Materiais de Aula"]:::repository

    %% Main Modules
    AMod["Angular Module"]:::angular
    HTMLMod["HTML Examples"]:::html
    LogicMod["Lógica de Programação Examples"]:::logic

    %% Connections from Repository Root to Modules
    R -->|"contains"| AMod
    R -->|"contains"| HTMLMod
    R -->|"contains"| LogicMod

    %% Angular Subgraph
    subgraph "Angular Projects"
        direction TB
        %% Angular Lessons
        A04["Angular Lesson: aula_04 – helloworld"]:::angular
        A05["Angular Lesson: aula_05 – helloworld (produtos)"]:::angular
        A06["Angular Lesson: aula_06 – helloworld (services)"]:::angular

        %% Detailed structure for aula_04
        subgraph "aula_04 Structure"
            direction TB
            App["src/app"]:::angularDetail
            Module["app.module"]:::angularDetail
            Component["app.component"]:::angularDetail
            Assets["src/assets"]:::angularDetail
            Config["Config Files (angular.json, package.json, tsconfig.json)"]:::angularDetail
            App --> Module
            Module --> Component
        end
        A04 --> App

        %% Angular Exercises
        Ex01["Angular Exercise: exercicio01"]:::angular
        Ex02["Angular Exercise: exercicio02"]:::angular
        Ex03["Angular Exercise: exercicio03 – giphy"]:::angular
    end

    %% HTML Examples Subgraph
    subgraph "HTML Lessons"
        direction TB
        HTML_A03["HTML Lesson: aula_3"]:::html
        HTML_A04["HTML Lesson: aula_4"]:::html
    end

    %% Lógica de Programação Subgraph
    subgraph "Lógica de Programação Lessons"
        direction TB
        LP_A02["Lógica de Programação: aula_2"]:::logic
        LP_A03["Lógica de Programação: aula_3"]:::logic
    end

    %% Connections from Modules to their projects
    AMod --> A04
    AMod --> A05
    AMod --> A06
    AMod --> Ex01
    AMod --> Ex02
    AMod --> Ex03

    HTMLMod --> HTML_A03
    HTMLMod --> HTML_A04

    LogicMod --> LP_A02
    LogicMod --> LP_A03

    %% Click Events for Component Mapping
    click R "https://github.com/toti-br/aulas_2020-2/blob/master/README.md"
    click AMod "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/"
    click A04 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/aula_04/helloworld"
    click A05 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/aula_05/helloworld"
    click A06 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/aula_06/helloworld"
    click Ex01 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/exercicio01"
    click Ex02 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/exercicio02"
    click Ex03 "https://github.com/toti-br/aulas_2020-2/tree/master/Angular/exercicio03/giphy"
    click HTMLMod "https://github.com/toti-br/aulas_2020-2/tree/master/HTML/"
    click HTML_A03 "https://github.com/toti-br/aulas_2020-2/tree/master/HTML/aula_3"
    click HTML_A04 "https://github.com/toti-br/aulas_2020-2/tree/master/HTML/aula_4"
    click LogicMod "https://github.com/toti-br/aulas_2020-2/tree/master/Lógica de Programação/"
    click LP_A02 "https://github.com/toti-br/aulas_2020-2/tree/master/Lógica de Programação/aula_2"
    click LP_A03 "https://github.com/toti-br/aulas_2020-2/tree/master/Lógica de Programação/aula_3"

    %% Styles
    classDef repository fill:#b3e5fc,stroke:#0277bd,stroke-width:2px;
    classDef angular fill:#ffcc80,stroke:#ef6c00,stroke-width:2px;
    classDef html fill:#c8e6c9,stroke:#2e7d32,stroke-width:2px;
    classDef logic fill:#d1c4e9,stroke:#673ab7,stroke-width:2px;
    classDef angularDetail fill:#fff9c4,stroke:#fbc02d,stroke-width:1px;
```
