# thiernomoontaga/sonatelacademy architecture

> Architecture diagram of the GitHub repository thiernomoontaga/sonatelacademy, 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/thiernomoontaga/sonatelacademy
- Repository: https://github.com/thiernomoontaga/sonatelacademy

## Overview

##### Overall Project Organization
- Repository as a container with two major segments:
- The HTML/CSS projects folder (“htmlCss”) – a collection of independent front-end experiments and mini-applications.
- The C-based project (“projet c”) – a structured application built using the MVC pattern to manage online course functionalities.

A. HTML/CSS Projects
- For the “htmlCss” folder, illustrate:
- A parent block titled “HTML & CSS Projects (Front-end Demos)”.
- Inside this block, list individual sub-components or mini-app projects such as DiceMaster, JeudeDé, JeudesNuages, JeuxSerpent, animationCss, form, lUDO, and website.

B. Projet C (Platform de cours en ligne)
- For the “projet c” folder, create a separate section:
- Since the project implements the MVC pattern, divide this section into:
- Model: Represented by files like model.h and model.c.
- View: Represented by view.h and view…c (likely handling UI rendering).
- Controller: Represented by controller.h and controller.c.
- Additionally, include auxiliary components:
- “header” directory for global constants and interface definitions.
- “source” directory for the application’s logic and main operations (main.c).
- “bin” directory which shows output binaries (certifications.bin, cours.bin, utilisateurs.bin) that the project uses as data stores.

##### Architectural Patterns and Technologies
- Use of the MVC pattern in the Projet C component.
- For the HTML/CSS folder, emphasize that it is focused purely on front-end design and responsiveness.
- Mention that even though these are frontend projects, they share common themes such as animations, responsive design, and interactive UI elements.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% HTML & CSS Projects Section
    subgraph "HTML & CSS Projects (Front-end Demos)"
        NodeHtml["HTML & CSS Projects"]
        DiceMaster["DiceMaster: Interactive Dice Animation"]
        JeudeDe["JeudeDé: Dice Game Demo"]
        JeudesNuages["JeudesNuages: Cloud Animation Demo"]
        JeuxSerpent["JeuxSerpent: Snake Game Demo"]
        AnimationCss["Animation CSS Projects"]
        FormDemo["Form: Interactive Form Demo"]
        Ludo["lUDO: Ludo Game Demo"]
        Website["Website: Responsive Website Demo"]
    end

    %% Define relationships within HTML/CSS Projects
    NodeHtml -->|"uses"| DiceMaster
    NodeHtml -->|"uses"| JeudeDe
    NodeHtml -->|"uses"| JeudesNuages
    NodeHtml -->|"uses"| JeuxSerpent
    NodeHtml -->|"uses"| AnimationCss
    NodeHtml -->|"uses"| FormDemo
    NodeHtml -->|"uses"| Ludo
    NodeHtml -->|"uses"| Website

    %% Projet C - Online Courses Platform Section
    subgraph "Projet C - Online Courses Platform"
        GlobalConstants["Global Constants & Interfaces (constant.h)"]:::cproject
        MainApp["Application Logic (main.c)"]:::cproject
        subgraph "MVC Components"
            ControllerHeader["Controller (Header)"]:::mvc
            ControllerSource["Controller (Source)"]:::mvc
            ModelHeader["Model (Header)"]:::mvc
            ModelSource["Model (Source)"]:::mvc
            ViewHeader["View (Header)"]:::mvc
            ViewSource["View (Source)"]:::mvc
        end
        DataPersistence["Data Persistence (Binary Files)"]:::cproject
    end

    %% Define relationships within Projet C
    MainApp -->|"starts"| ControllerHeader
    GlobalConstants -->|"provides"| ControllerHeader
    GlobalConstants -->|"provides"| ModelHeader
    GlobalConstants -->|"provides"| ViewHeader

    ControllerHeader -->|"delegatesTo"| ControllerSource
    ModelHeader -->|"implements"| ModelSource
    ViewHeader -->|"rendersVia"| ViewSource

    ControllerSource -->|"commands"| ModelHeader
    ModelSource -->|"updates"| ViewHeader
    ViewSource -->|"feedbacks"| ControllerHeader

    ModelSource -->|"persists"| DataPersistence

    %% Click Events for HTML/CSS Projects
    click NodeHtml "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss"
    click DiceMaster "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/DiceMaster"
    click JeudeDe "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/JeudeDé/code"
    click JeudesNuages "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/JeudesNuages"
    click JeuxSerpent "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/JeuxSerpent"
    click AnimationCss "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/animationCss/video1"
    click FormDemo "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/form"
    click Ludo "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/lUDO"
    click Website "https://github.com/thiernomoontaga/sonatelacademy/tree/main/htmlCss/website/code"

    %% Click Events for Projet C Components
    click MainApp "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/source/main.c"
    click GlobalConstants "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/header/constant.h"
    click ControllerHeader "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/header/controller.h"
    click ControllerSource "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/source/controller.c"
    click ModelHeader "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/header/model.h"
    click ModelSource "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/source/model.c"
    click ViewHeader "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/header/view.h"
    click ViewSource "https://github.com/thiernomoontaga/sonatelacademy/blob/main/projet c/source/view..c"
    click DataPersistence "https://github.com/thiernomoontaga/sonatelacademy/tree/main/projet c/bin"

    %% Styling
    classDef frontEnd fill:#FFCCCC,stroke:#990000,stroke-width:2px;
    classDef mvc fill:#CCFFCC,stroke:#009900,stroke-width:2px;
    classDef cproject fill:#CCCCFF,stroke:#000099,stroke-width:2px;

    class NodeHtml,DiceMaster,JeudeDe,JeudesNuages,JeuxSerpent,AnimationCss,FormDemo,Ludo,Website frontEnd;
    class ControllerHeader,ControllerSource,ModelHeader,ModelSource,ViewHeader,ViewSource mvc;
    class GlobalConstants,MainApp,DataPersistence cproject;
```
