# hudsam/dicoding architecture

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

- Interactive diagram: https://gitdiagram.com/hudsam/dicoding
- Repository: https://github.com/hudsam/dicoding

## Overview

##### Project type and purpose
- From the file tree and README, this repository is not a deployable application but rather a “collection of exercises” (“Kumpulan latihan”) used during Dicoding learning.
- It’s effectively a monorepo of small code‐exercise modules rather than a single runtime system.

##### (minimal) file structure
- Each exercise directory will contain its own source files, tests, and possibly a config or build script.

##### Detail without overthinking
- Break the monorepo into its logical components (e.g., `/exercise-1`, `/exercise-2`, `/common`)
- Explicitly note shared vs. per-exercise resources
- Flow of code from a developer’s workstation all the way to published docs and test reports

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Entities
    DEV["Local Dev Env"]:::env
    R(("Repo (Monorepo)")):::repo
    subgraph "Exercise Modules"
        E1["/exercise-1"]:::module
        E2["/exercise-2"]:::module
        C["/common"]:::module
    end
    CI["CI Pipeline"]:::ci
    TR["Test Runner"]:::ci
    DG["Docs Generator"]:::docs
    DS["Docs Site"]:::docs

    %% Relationships
    DEV -->|"edit & commit"| R
    R --> E1
    R --> E2
    R --> C
    R -->|"push triggers"| CI
    CI -->|"runs tests"| TR
    TR -->|"reports results"| CI
    CI -->|"on success"| DG
    DG -->|"builds site"| DS

    %% Click Events
    click R "https://github.com/hudsam/dicoding/blob/master/README.md"

    %% Styles
    classDef module fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef ci fill:#90EE90,stroke:#000,stroke-width:1px
    classDef docs fill:#FFA500,stroke:#000,stroke-width:1px
    classDef env fill:#E0E0E0,stroke:#000,stroke-width:1px
    classDef repo fill:#D3D3D3,stroke:#000,stroke-width:1px
```
