# yurukute/ctu architecture

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

- Interactive diagram: https://gitdiagram.com/yurukute/ctu
- Repository: https://github.com/yurukute/ctu

## Overview

##### Project type and purpose
- This is not a conventional full-stack or microservice application, but a monolithic “portfolio” or “monorepo” that aggregates course assignments, lab exercises, and student projects for various CTU courses (CT101, CT112, CT174, …, IoT, UML, etc.).
- The README confirms that this repo is a central collection (“Repo tổng hợp các bài thực hành”) of student work and points to four external “Đồ án” (capstone projects) hosted elsewhere.

##### File structure
- Top-level folders are course codes (CT101, CT112, CT174, …, CT295) or topic areas (CSDL, UML, IoT, etc.).
- Within each, subfolders correspond to weekly exercises or assignment numbers, each containing source code (C, Java, Python, Arduino .ino, HTML/CSS/JS) and a readme describing that exercise.
- There are no build scripts, no CI/CD files, no shared libraries—each folder is self-contained.
- The README.md lives at the root and points to external GitHub repos for larger capstone projects.

##### Main components
a. Monorepo Root
b. Course Modules (CT101, CT112, CT174, …, IoT, UML, CSDL, NMLT_Web, etc.)
c. Within each Course Module, Assignment Submodules (e.g., CT101 → Minesweeper → init, count_mines, printMap1, …)
d. External Capstone Projects (GroupChatChillChill, RubiksGL, IcePathFinder, esp8266_car, AquaSense)

##### Relationships and interactions
- Structurally, each Course Module is independent—there is no inter-module code dependency.
- The only cross-references are in the root README, pointing to external capstone-project repos.
- Data flow or runtime interaction is minimal; the repository is static.

##### Architectural patterns and design principles
- Monolithic-monorepo pattern: all student work in one Git repo, organized by folder.
- Strict hierarchical organization: Repo → Course → Assignment → Source + Readme.
- Naming conventions align directory names with course codes and assignment numbers.
- Each submodule is self-contained with its own documentation and code.

##### Relevant technologies
- Languages: C, Java, Python, HTML/CSS/JS, Arduino C (.ino)
- No databases, no web server or runtime frameworks included here

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Root and README
    Root["CTU Student Work Repo"]:::root
    README["README.md (External Links Hub)"]:::root
    Root --> README

    %% Course Modules
    subgraph "CT101 - LTCB_A" 
        direction TB
        CT101["CT101"]:::c
        Minesweeper["Minesweeper"]:::c
        k_puzzle["k-puzzle"]:::c
        CT101 --> Minesweeper
        CT101 --> k_puzzle
    end
    Root --> CT101

    subgraph "CT112 - MMT"
        direction TB
        CT112["CT112"]:::net
        BaiTap11["BaiTap11"]:::net
        CT112 --> BaiTap11
    end
    Root --> CT112

    subgraph "CT174 - PTTKTT"
        direction TB
        CT174["CT174"]:::c
        sort1["buoi1 - sort"]:::c
        CT174 --> sort1
    end
    Root --> CT174

    subgraph "CT175 - LTDT"
        direction TB
        CT175["CT175"]:::c
        init_graph["[01] init_graph"]:::c
        CT175 --> init_graph
    end
    Root --> CT175

    subgraph "CT176 - OOP (java)"
        direction TB
        CT176["CT176"]:::java
        buoi1_ct176["buoi1"]:::java
        CT176 --> buoi1_ct176
    end
    Root --> CT176

    subgraph "CT177 - CTDL"
        direction TB
        CT177["CT177"]:::c
        AVL_Tree["AVL_Tree"]:::c
        CT177 --> AVL_Tree
    end
    Root --> CT177

    subgraph "CT178 - NLHDH"
        direction TB
        CT178["CT178"]:::c
        Project178["Project"]:::c
        CT178 --> Project178
    end
    Root --> CT178

    subgraph "CT180 - CSDL"
        direction TB
        CT180["CT180"]:::c
        buoi1_180["buoi1"]:::c
        CT180 --> buoi1_180
    end
    Root --> CT180

    subgraph "CT182 - UML"
        direction TB
        CT182["CT182"]:::uml
    end
    Root --> CT182

    subgraph "CT188 - NMLT_Web"
        direction TB
        CT188["CT188"]:::web
        Lab1["Lab1"]:::web
        CT188 --> Lab1
    end
    Root --> CT188

    subgraph "CT223 - QLDA"
        direction TB
        CT223["CT223"]:::c
        buoi1_223["buoi1"]:::c
        CT223 --> buoi1_223
    end
    Root --> CT223

    subgraph "CT240 - NLXDPM"
        direction TB
        CT240["CT240"]:::java
        MSSV["MSSV"]:::java
        CT240 --> MSSV
    end
    Root --> CT240

    subgraph "CT243 - KTPM"
        direction TB
        CT243["CT243"]:::java
        Automation["Automation testing"]:::java
        CT243 --> Automation
    end
    Root --> CT243

    subgraph "CT276 - LTJava"
        direction TB
        CT276["CT276"]:::java
        buoi2_276["buoi2"]:::java
        CT276 --> buoi2_276
    end
    Root --> CT276

    subgraph "CT287 - KCMH"
        direction TB
        CT287["CT287"]:::c
        PythonBasic["Basic of Python"]:::c
        CT287 --> PythonBasic
    end
    Root --> CT287

    subgraph "CT295 - IoT"
        direction TB
        CT295["CT295"]:::iot
        Christmas_Light["Christmas_Light"]:::iot
        CT295 --> Christmas_Light
    end
    Root --> CT295

    %% External Capstone Projects
    GroupChat["GroupChatChillChill"]:::external
    Rubiks["RubiksGL"]:::external
    IcePath["IcePathFinder"]:::external
    esp8266["esp8266_car"]:::external
    AquaSense["AquaSense"]:::external

    README -.-> GroupChat
    README -.-> Rubiks
    README -.-> IcePath
    README -.-> esp8266
    README -.-> AquaSense

    %% Click Events
    click Root "https://github.com/yurukute/ctu/tree/main/./"
    click README "https://github.com/yurukute/ctu/blob/main/./README.md"
    click CT101 "https://github.com/yurukute/ctu/tree/main/./CT101 - LTCB_A/"
    click Minesweeper "https://github.com/yurukute/ctu/tree/main/./CT101 - LTCB_A/Minesweeper/"
    click k_puzzle "https://github.com/yurukute/ctu/tree/main/./CT101 - LTCB_A/k-puzzle/"
    click CT112 "https://github.com/yurukute/ctu/tree/main/./CT112 - MMT/"
    click BaiTap11 "https://github.com/yurukute/ctu/tree/main/./CT112 - MMT/BaiTap11/"
    click CT174 "https://github.com/yurukute/ctu/tree/main/./CT174 - PTTKTT/"
    click sort1 "https://github.com/yurukute/ctu/tree/main/./CT174 - PTTKTT/buoi1 - sort/"
    click CT175 "https://github.com/yurukute/ctu/tree/main/./CT175 - LTDT/"
    click init_graph "https://github.com/yurukute/ctu/tree/main/./CT175 - LTDT/buoi1/[01] init_graph/"
    click CT176 "https://github.com/yurukute/ctu/tree/main/./CT176 - OOP (java)/"
    click buoi1_ct176 "https://github.com/yurukute/ctu/tree/main/./CT176 - OOP (java)/buoi1/"
    click CT177 "https://github.com/yurukute/ctu/tree/main/./CT177 - CTDL/"
    click AVL_Tree "https://github.com/yurukute/ctu/tree/main/./CT177 - CTDL/AVL_Tree/"
    click CT178 "https://github.com/yurukute/ctu/tree/main/./CT178 - NLHDH/"
    click Project178 "https://github.com/yurukute/ctu/tree/main/./CT178 - NLHDH/Project/"
    click CT180 "https://github.com/yurukute/ctu/tree/main/./CT180 - CSDL/"
    click buoi1_180 "https://github.com/yurukute/ctu/tree/main/./CT180 - CSDL/buoi1/"
    click CT182 "https://github.com/yurukute/ctu/tree/main/./CT182 - UML/"
    click CT188 "https://github.com/yurukute/ctu/tree/main/./CT188 - NMLT_Web/"
    click Lab1 "https://github.com/yurukute/ctu/tree/main/./CT188 - NMLT_Web/Lab1/"
    click CT223 "https://github.com/yurukute/ctu/tree/main/./CT223 - QLDA/"
    click buoi1_223 "https://github.com/yurukute/ctu/tree/main/./CT223 - QLDA/buoi1/"
    click CT240 "https://github.com/yurukute/ctu/tree/main/./CT240 - NLXDPM/"
    click MSSV "https://github.com/yurukute/ctu/tree/main/./CT240 - NLXDPM/MSSV/"
    click CT243 "https://github.com/yurukute/ctu/tree/main/./CT243 - KTPM/"
    click Automation "https://github.com/yurukute/ctu/tree/main/./CT243 - KTPM/Automation testing/"
    click CT276 "https://github.com/yurukute/ctu/tree/main/./CT276 - LTJava/"
    click buoi2_276 "https://github.com/yurukute/ctu/tree/main/./CT276 - LTJava/buoi2/"
    click CT287 "https://github.com/yurukute/ctu/tree/main/./CT287 - KCMH/"
    click PythonBasic "https://github.com/yurukute/ctu/tree/main/./CT287 - KCMH/Basic of Python/"
    click CT295 "https://github.com/yurukute/ctu/tree/main/./CT295 - IoT/"
    click Christmas_Light "https://github.com/yurukute/ctu/tree/main/./CT295 - IoT/Christmas_Light/"

    %% Styles
    classDef root fill:#f9f,stroke:#333,stroke-width:2px
    classDef c fill:#bbdefb,stroke:#1e88e5,stroke-width:1px
    classDef java fill:#c8e6c9,stroke:#43a047,stroke-width:1px
    classDef web fill:#ffe0b2,stroke:#fb8c00,stroke-width:1px
    classDef iot fill:#fff59d,stroke:#fdd835,stroke-width:1px
    classDef net fill:#e1bee7,stroke:#8e24aa,stroke-width:1px
    classDef uml fill:#eeeeee,stroke:#616161,stroke-width:1px
    classDef external fill:#ffffff,stroke:#999999,stroke-dasharray: 5 5,stroke-width:1px
```
