# fede2570/ipc1-2s2024 architecture

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

- Interactive diagram: https://gitdiagram.com/fede2570/ipc1-2s2024
- Repository: https://github.com/fede2570/ipc1-2s2024

## Overview

##### Main Components and Groupings
- Java Projects: These include directories like “Ambitos”, “Clase 5”, “Clase 6”, “Clase 7”, “Clase 8”, “Clase2”, “Ejemplo1”, and “Ejemplo_Proyecto”. Most are built using NetBeans with a standard structure (src, nbproject for configuration, build, manifest.mf, etc.). Some of these are GUI applications (many .form files indicate visual interface components) and other examples demonstrate object-oriented or abstract/interface concepts.
- Python Example: Look at “Clase 14/main.py”. It’s a standalone Python file that likely demonstrates basic scripting or algorithm examples.
- Full-Stack / Web Projects: Two examples stand out:
– “Clase 9/Backend” which contains a Node.js project (index.js, package.json) along with an HTML/CSS/JS example (Ejemplos_HTML_CSS_JavaScript).
– “EjemploProyecto2” which explicitly separates the project into “Backend” (with controllers, models, and routes) and “frontend” (containing React-like components and a modern build configuration using vite.config.js).

##### Detailing Relationships and Interactions
- For full-stack projects, delineate clear interfaces:
– The Backend Node.js component (in “Clase 9/Backend” or “EjemploProyecto2/Backend”) handles API routes, controllers, and models, with possible connections to a database (even if the database is implicit).
– The Frontend component (in “EjemploProyecto2/frontend”) which handles user interactions can be drawn interacting with the backend via API calls.
– Optionally, highlight the separation of concerns—where the “Backend” is decoupled from the “Frontend” and governed by RESTful route architecture.

##### Architectural Patterns and Technical Stack
- For Java projects:
– A typical NetBeans-generated project structure is in use (MVC in some cases when forms and controllers appear).
– Many examples point to basic principles of object-oriented programming, polymorphism (with abstract classes and interfaces in Clase 7) and GUI event handling.
- For Web projects:
– Emphasize the separation between frontend (React-like components, Vite configuration) and backend (Node.js Express pattern with controllers, models and routes).
- Use of build tools (Ant in Java projects using build.xml; npm for Node.js projects) and dependency management files (package.json, package-lock.json).

- A container for “Python Lab Example” that simply illustrates the standalone script (main.py) and its execution flow.
- A container for “Full-Stack/Web Projects” where you have two subcomponents:
- Backend Component: Include elements like REST controllers, routes, and models as seen in EjemploProyecto2/Backend (or Clase 9/Backend).
- Frontend Component: Include user interface elements (React components, HTML pages) from EjemploProyecto2/frontend and Clase 9’s HTML/CSS/JS example.
– From the “Frontend” to “Backend” to show API consumption.
d. Clearly label every component with names (e.g., “Ambitos – GUI Application”, “Clase 7 – OOP/Abstract Concepts”, “EjemploProyecto2 – Full-Stack Application Backend”, “EjemploProyecto2 – Full-Stack Application Frontend”).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Java Lab Projects Container
    subgraph "Java Lab Projects"
        direction TB
        A["Ambitos - GUI Application"]:::java
        subgraph "Clase 5 Projects"
            direction TB
            C5_1["Clase 5 - Ejemplo2"]:::java
            C5_2["Clase 5 - EjemploObjetos"]:::java
        end
        C6["Clase 6 - Ejemplo2"]:::java
        subgraph "Clase 7 Projects"
            direction TB
            C7_Abs["Clase 7 - Abstract Classes"]:::java
            C7_Threads["Clase 7 - Threads Example"]:::java
            C7_Inter["Clase 7 - Interfaces Example"]:::java
        end
        C8["Clase 8 - MVC Pattern"]:::java
        C2["Clase2 - Basic Java Example"]:::java
        C2P2["Clase2_Parte2 - Basic Java Example"]:::java
        E1["Ejemplo1 - Simple Java Example"]:::java
        EP["Ejemplo_Proyecto - Complex GUI Application"]:::java
        
        BP["Build Output (build/classes)"]:::build
    end

    %% Arrows from each Java project to the Build Process
    A --> BP
    C5_1 --> BP
    C5_2 --> BP
    C6 --> BP
    C7_Abs --> BP
    C7_Threads --> BP
    C7_Inter --> BP
    C8 --> BP
    C2 --> BP
    C2P2 --> BP
    E1 --> BP
    EP --> BP

    %% Python Lab Example Container
    subgraph "Python Lab Example"
        direction TB
        PY["Python Script (Clase 14/main.py)"]:::python
    end

    %% Full-Stack/Web Projects Container
    subgraph "Full-Stack/Web Projects"
        direction TB
        subgraph "Frontend Components"
            direction TB
            F9["Clase 9 - HTML/CSS/JS"]:::frontend
            FEP["EjemploProyecto2 - Frontend (React/Vite)"]:::frontend
        end
        subgraph "Backend Components"
            direction TB
            B9["Clase 9 - Backend (Node.js)"]:::backend
            BEP["EjemploProyecto2 - Backend"]:::backend
        end
    end

    %% Arrows for Full-Stack Projects (Frontend -> Backend)
    F9 -->|"API_call"| B9
    FEP -->|"API_call"| BEP

    %% Click Events for Java Lab Projects
    click A "https://github.com/fede2570/ipc1-2s2024/tree/main/Ambitos"
    click C5_1 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 5/Ejemplo2"
    click C5_2 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 5/EjemploObjetos"
    click C6 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 6/Ejemplo2"
    click C7_Abs "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 7/ClaseAbstractas"
    click C7_Threads "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 7/EjemplosHilos"
    click C7_Inter "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 7/Interfaces"
    click C8 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 8"
    click C2 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase2"
    click C2P2 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase2_Parte2"
    click E1 "https://github.com/fede2570/ipc1-2s2024/tree/main/Ejemplo1"
    click EP "https://github.com/fede2570/ipc1-2s2024/tree/main/Ejemplo_Proyecto"

    %% Click Event for Python Lab Example
    click PY "https://github.com/fede2570/ipc1-2s2024/blob/main/Clase 14/main.py"

    %% Click Events for Full-Stack/Web Projects
    click B9 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 9/Backend"
    click BEP "https://github.com/fede2570/ipc1-2s2024/tree/main/EjemploProyecto2/Backend"
    click F9 "https://github.com/fede2570/ipc1-2s2024/tree/main/Clase 9/Ejemplos_HTML_CSS_JavaScript"
    click FEP "https://github.com/fede2570/ipc1-2s2024/tree/main/EjemploProyecto2/frontend"

    %% Style Definitions
    classDef java fill:#AED6F1,stroke:#1B4F72,stroke-width:2px;
    classDef python fill:#A9DFBF,stroke:#145A32,stroke-width:2px;
    classDef frontend fill:#F9E79F,stroke:#7D6608,stroke-width:2px;
    classDef backend fill:#F5CBA7,stroke:#7E5109,stroke-width:2px;
    classDef build fill:#D7BDE2,stroke:#6C3483,stroke-width:2px;
```
