# wmbolles/42 architecture

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

- Interactive diagram: https://gitdiagram.com/wmbolles/42
- Repository: https://github.com/wmbolles/42

## Overview

##### Project type and purpose
- This repository is a monolithic “journey‐log” open-source archive rather than a single application. It documents two phases:
- 42-Piscine: a set of standalone C exercises and shell scripts (selection bootcamp).
- 42-Cursus: the main curriculum, a collection of independent projects in C and C++ (libraries, tools, IPC, shells, graphics, threads, OOP modules).
- Its purpose is educational: to catalog implementations, dependencies, documentation and reusable libraries.

##### File structure
- Top-level directories:
- 42-Piscine/
- 42-Cursus/
- README.md at root (overview)
- Under 42-Piscine: grouping by day (“c00”→“c11”), shell fundamentals, rush00 weekend projects, images.
- Under 42-Cursus: each project is its own folder with Makefile, sources and headers:
– Libft (core C library)
– ft_printf (custom printf)
– get_next_line (file reader)
– Minitalk (IPC via signals)
– fract-ol (graphical fractals)
– Minishell (Unix shell)
– Philosophers (thread/synchronization)
– Cpp-Modules (series of C++ exercises)
- Notice sub-dirs that indicate dependencies: many Cursus projects include or duplicate Libft, ft_printf, get_next_line.

##### README for additional insights
- The high-level README outlines the two phases, technologies (C, C++, Shell), tools (Make, GDB, Valgrind), and coding pedagogy.

a. Main components
- “42-School-Journey” monorepo (root)
- Phase 1: 42-Piscine
- Phase 2: 42-Cursus
- Reusable libraries: Libft, ft_printf, get_next_line
- Standalone executables/projects: Minitalk, fract-ol, Minishell, Philosophers, Cpp-Modules
b. Relationships & interactions
- Within Piscine, there is no cross-dependency—each exercise is isolated.
c. Architectural patterns & design principles
- Monorepo structure: co-located but logically independent modules.
- Layered dependency graph: core libraries at the bottom, tools/executables at the top.
- Each project follows a “Makefile + src + include” convention.
d. Technologies & frameworks
- Language nodes: C, C++, Shell scripts
- Toolchain: Make, GCC, GDB, Valgrind

##### Detailed but not over-engineered
- Lay out two columns: left = Piscine, right = Cursus.
- Under Cursus, place Libft, ft_printf, get_next_line at bottom as foundational blocks.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "42-School-Journey Monorepo"
        style 42-School-Journey Monorepo fill:#f9f2ec,stroke:#e69f00,stroke-width:2px

        subgraph "Phase 1: 42-Piscine"
            PISCINE["Piscine Exercises (c00-c11, Shell, Rush)"]:::piscine
        end

        subgraph "Phase 2: 42-Cursus"
            subgraph "Libraries"
                LIBFT[(Libft Library)]:::lib
                FT_PRINTF[(ft_printf Library)]:::lib
                GNL[(get_next_line Library)]:::lib
            end

            subgraph "Projects"
                MINITALK["Minitalk (IPC via signals)"]:::proj
                FRACTOL["fract-ol (Graphical fractals)"]:::proj
                MINISHELL["Minishell (Unix shell)"]:::proj
                PHILOSOPHERS["Philosophers Simulator"]:::proj
                CPPMODULES["Cpp-Modules Series"]:::proj
            end
        end
    end

    %% Dependencies
    MINITALK -->|depends on| LIBFT
    FRACTOL -->|depends on| FT_PRINTF
    FRACTOL -->|depends on| LIBFT
    MINISHELL -->|depends on| GNL
    MINISHELL -->|depends on| LIBFT
    PHILOSOPHERS -->|depends on| LIBFT

    %% Click Events
    click PISCINE "https://github.com/wmbolles/42/tree/master/42-Piscine/"
    click LIBFT "https://github.com/wmbolles/42/tree/master/42-Cursus/Libft/"
    click FT_PRINTF "https://github.com/wmbolles/42/tree/master/42-Cursus/ft_printf/"
    click GNL "https://github.com/wmbolles/42/tree/master/42-Cursus/get_next_line/"
    click MINITALK "https://github.com/wmbolles/42/tree/master/42-Cursus/Minitalk/"
    click FRACTOL "https://github.com/wmbolles/42/tree/master/42-Cursus/fract-ol/"
    click MINISHELL "https://github.com/wmbolles/42/tree/master/42-Cursus/Minishell/"
    click PHILOSOPHERS "https://github.com/wmbolles/42/tree/master/42-Cursus/Philosophers/philo/"
    click CPPMODULES "https://github.com/wmbolles/42/tree/master/42-Cursus/Cpp-Modules/"
    click 42-School-Journey Monorepo "README.md"

    %% Styles
    classDef meta fill:#f9f2ec,stroke:#e69f00,color:#000
    classDef piscine fill:#fde8c0,stroke:#e69f00,color:#000,stroke-dasharray: 5 5
    classDef lib fill:#d0e1f9,stroke:#3b78e7,color:#000
    classDef proj fill:#d4f5d4,stroke:#2e7d32,color:#000
```
