# haryphamdev/hoidanit-typescript-basic architecture

> Architecture diagram of the GitHub repository haryphamdev/hoidanit-typescript-basic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haryphamdev/hoidanit-typescript-basic
- Repository: https://github.com/haryphamdev/hoidanit-typescript-basic

## Overview

##### Project type and purpose
- This is a tutorial repository containing TypeScript learning materials—code samples, hands-on chapters and lessons, and example projects—designed to accompany a YouTube playlist on “TypeScript basic.”
- It is not a typical full-stack app or service; rather it is a static code-sample website and directory of TS/JS files for educational use.

##### File structure
- Top-level assets:
– index.html: the static entry point for the lesson viewer
– lesson.js: a general script loader for the lessons
- chapter3/ and docs/ and projects/ group lesson source files by type:
– chapter3/: backup and working TS/JS for “chapter3”
– docs/lessonX: static HTML + compiled JS + TS source for in-depth docs
– projects/lessonX: hands-on project samples in TS/JS
- Every .ts file is paired with .js output—indicating a compile step (tsc)
- No backend code, no external microservices—purely static resource structure
- No deployment or CI config files present (no Dockerfile, no GitHub Actions, etc.)

##### README for additional insights
- README simply references this as “TypeScript basic” content for a YouTube playlist
- No special architecture is described—so we infer a simple static site and compile pipeline

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Development Environment
    Developer["Developer Workstation<br/>(IDE, Node.js)"]:::source

    %% Source Code
    subgraph "Source Code"
        direction TB
        Chapter3["chapter3/"]:::source
        Docs["docs/"]:::source
        Projects["projects/"]:::source
        Index["index.html"]:::source
        LessonLoader["lesson.js"]:::source
    end

    %% Build Pipeline
    Build["tsc Compiler"]:::build

    %% Output Artifacts
    subgraph "Compiled Outputs"
        direction TB
        Chapter3Output["chapter3/*.js"]:::build
        DocsOutput["docs/**/*.js"]:::build
        ProjectsOutput["projects/**/*.js"]:::build
    end

    %% Deployment & Runtime
    Host["Static Host<br/>(GitHub Pages)"]:::build
    Browser["Browser Runtime"]:::runtime

    %% Connections
    Developer --> Chapter3
    Developer --> Docs
    Developer --> Projects
    Developer --> Index
    Developer --> LessonLoader

    Chapter3 --> Build
    Docs --> Build
    Projects --> Build

    Build --> Chapter3Output
    Build --> DocsOutput
    Build --> ProjectsOutput

    Index --> Browser
    LessonLoader --> Browser
    Chapter3Output --> Browser
    DocsOutput --> Browser
    ProjectsOutput --> Browser

    Build --> Host
    Host --> Browser

    %% Click Events
    click Chapter3 "https://github.com/haryphamdev/hoidanit-typescript-basic/tree/master/chapter3/"
    click Docs "https://github.com/haryphamdev/hoidanit-typescript-basic/tree/master/docs/"
    click Projects "https://github.com/haryphamdev/hoidanit-typescript-basic/tree/master/projects/"
    click Index "https://github.com/haryphamdev/hoidanit-typescript-basic/blob/master/index.html"
    click LessonLoader "https://github.com/haryphamdev/hoidanit-typescript-basic/blob/master/lesson.js"

    %% Styles
    classDef source fill:#AEDFF7,stroke:#0366d6,color:#0366d6;
    classDef build fill:#A8E6CF,stroke:#379237,color:#379237;
    classDef runtime fill:#FFD3B6,stroke:#d35400,color:#d35400;
```
