# mlops-courses/mlops-coding-course architecture

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

- Interactive diagram: https://gitdiagram.com/mlops-courses/mlops-coding-course
- Repository: https://github.com/mlops-courses/mlops-coding-course

## Overview

##### Project type and purpose
- This is a documentation‑centric project: an MLOps coding course delivered as a static site (MkDocs) alongside supporting tooling (Python virtual environments, task runner, CI/CD).
- Its “code” is primarily Markdown under `docs/`, and its “runtime” is a static site generator plus developer utilities (`uv`, `just`, GitHub workflows).

##### File structure
- Top level:
- `.github/workflows/assign.yml` & `publish.yml` → CI/CD pipelines
- `docs/` → all course content (seven chapters + assets)
- `mkdocs.yml` → static‑site configuration
- `pyproject.toml` & `uv.lock` → Python project + dependencies
- `justfile` → task definitions (install, serve, etc.)
- `.python-version`, `.vscode`, `mlops-coding-course.code-workspace` → developer environment setup
- No backend/server code; it’s a static‑site publishing pipeline.

##### README for additional insights
- Describes course chapters (Initializing, Prototyping, … Observability).
- Lists tools & dependencies (uv, pytest, ruff, mlflow, bandit, pre-commit, GitHub, VS Code).
- Installation & serve commands show developer workflow.

##### Elements
- Clear labels: Developer, GitHub Repo, CI/CD, Build Engine, Host
- Developer → GitHub (push)
- GitHub → Actions (trigger)
- Actions → Build → Host (deploy)
- Developer → Local Build → Browser (serve)
- Developer environment (e.g., blue rectangles)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Developer Machine"
        DM1["VS Code Workspace"]:::developer
        DM2[".vscode Settings"]:::developer
        DM3["Python Version (.python-version)"]:::developer
        DM4["Task Runner (justfile)"]:::developer
        DM5["Dependency Manager (uv.lock)"]:::developer
        DM6["Python Config (pyproject.toml)"]:::developer
    end

    subgraph "GitHub Repository"
        Repo1[(Course Content: docs/)]:::repo
        Repo2["Static-Site Config (mkdocs.yml)"]:::repo
        Repo3[(Assets: docs/assets/)]:::repo
        Repo4[(Images: docs/img/)]:::repo
    end

    subgraph "CI/CD (GitHub Actions)"
        WF1["Issue/PR Automation (assign.yml)"]:::pipeline
        WF2["Build & Deploy (publish.yml)"]:::pipeline
    end

    subgraph "MkDocs Build Engine"
        BE1["Site Build Entry (mkdocs.yml)"]:::build
        BE2[(Input Content: docs/)]:::build
        BE3["Custom Domain (docs/CNAME)"]:::build
    end

    subgraph "Hosting"
        Host1(["GitHub Pages"]):::hosting
    end

    %% Relationships
    DM1 -->|push changes| Repo1
    DM2 -->|push changes| Repo1
    DM3 -->|push changes| Repo1
    DM4 -->|push changes| Repo1
    DM5 -->|push changes| Repo1
    DM6 -->|push changes| Repo1

    Repo1 -->|trigger| WF1
    Repo1 -->|trigger| WF2

    WF2 -->|run build| BE1
    BE1 -->|deploy site| Host1

    %% Local development flow
    DM4 -->|"uv run just serve"| BE1
    BE1 -->|"serve to localhost"| DM1

    %% Click Events
    click DM1 "https://github.com/mlops-courses/mlops-coding-course/blob/main/mlops-coding-course.code-workspace"
    click DM2 "https://github.com/mlops-courses/mlops-coding-course/tree/main/.vscode/"
    click DM3 "https://github.com/mlops-courses/mlops-coding-course/blob/main/.python-version"
    click DM4 "https://github.com/mlops-courses/mlops-coding-course/tree/main/justfile"
    click DM5 "https://github.com/mlops-courses/mlops-coding-course/blob/main/uv.lock"
    click DM6 "https://github.com/mlops-courses/mlops-coding-course/blob/main/pyproject.toml"
    click Repo1 "https://github.com/mlops-courses/mlops-coding-course/tree/main/docs/"
    click Repo2 "https://github.com/mlops-courses/mlops-coding-course/blob/main/mkdocs.yml"
    click Repo3 "https://github.com/mlops-courses/mlops-coding-course/tree/main/docs/assets/"
    click Repo4 "https://github.com/mlops-courses/mlops-coding-course/tree/main/docs/img/"
    click WF1 "https://github.com/mlops-courses/mlops-coding-course/blob/main/.github/workflows/assign.yml"
    click WF2 "https://github.com/mlops-courses/mlops-coding-course/blob/main/.github/workflows/publish.yml"
    click BE1 "https://github.com/mlops-courses/mlops-coding-course/blob/main/mkdocs.yml"
    click BE2 "https://github.com/mlops-courses/mlops-coding-course/tree/main/docs/"
    click BE3 "https://github.com/mlops-courses/mlops-coding-course/tree/main/docs/CNAME"

    %% Styles
    classDef developer fill:#D6EAF8,stroke:#2874A6,color:#1B4F72
    classDef repo fill:#FCF3CF,stroke:#B7950B,color:#7D6608
    classDef pipeline fill:#FADBD8,stroke:#C0392B,color:#641E16
    classDef build fill:#D5F5E3,stroke:#239B56,color:#196F3D
    classDef hosting fill:#F2F3F4,stroke:#99A3A4,color:#2C3E50
```
