# supersimpledev/javascript-course architecture

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

- Interactive diagram: https://gitdiagram.com/supersimpledev/javascript-course
- Repository: https://github.com/supersimpledev/javascript-course

## Overview

##### Project type and purpose
- This is a static “JavaScript Course Materials” repository. It contains two main sections:
a. “1-exercise-solutions” – per-lesson solution files (JS, HTML, CSS, MD).
b. “2-copy-of-code” – end-of-lesson code snapshots, assets, and simple backend JSON mocks.
- Its purpose is to serve as learning materials: source code, exercises, and delivered as a static site (likely via GitHub Pages or similar).

##### File structure
- Top-level directories:
- 1-exercise-solutions (organized by lesson-##, each with solution files and README)
- 2-copy-of-code (organized by lesson-##, HTML/CSS/JS pages, images, simple “backend” JSON)
- scripts & styles folders (global utility code and styles for rock-paper-scissors, todo-list)
- There are no server-side frameworks or build scripts; this is purely static content.
- A top-level README.md points learners to the course video and completion certificate.

##### Key insights from README
- No dynamic runtime or API server; all content is pre-rendered.
- The course references an external YouTube video and an external certificate service.

a. Main components
- Git Repository (stores all static files under the two folders + README)
- Static Site Host / CDN (e.g., GitHub Pages, Netlify, S3+CloudFront)
- Client Browser (end-user)
- External Service: YouTube (embeds video)
- (Optional) Certificate Service (external URL for completion certificates)
b. Relationships & interactions
1. Developer → Git Repository (clone, commit, push)
2. Git Repository → Static Site Host (deploy via CI or GitHub Pages)
3. Client Browser ↔ Static Site Host/CDN (fetch HTML, CSS, JS, images)
4. Browser → YouTube (embed API calls to stream course videos)
5. Browser → Certificate Service (redirect to certificate URL)
c. Architectural patterns & design principles
- Static-site pattern: content-store + CDN + client-side rendering of static assets.
- Content organization per lesson as modular components.
- Clear separation of “solutions” vs. “copy of code” for pedagogical clarity.
d. Key technologies & libraries
- Plain HTML/CSS/JavaScript (no bundler)
- JSON for mock backend data in lessons 13–18
- Jasmine (in tests folder under lesson-16,17,18) for test runner

##### Elements
[Developer], [Git Repo], [CI/CD or GitHub Pages], [CDN], [Browser], [YouTube], [Certificate Service]
- “push” from Developer to Git Repo
- “deploy” from Git Repo to Host/CDN
- “HTTP GET” from Browser to CDN
- “Embed” or “API call” from Browser to YouTube & Certificate Service
- Hosting/CDN in another (e.g., green)
- Client components in a third (e.g., yellow)
- External services in a fourth (e.g., gray)

## Diagram (Mermaid)

```mermaid
graph TB
    %% Nodes
    Developer["Developer"]:::client
    GitRepo["Git Repository"]:::repo
    CICD["CI/CD / GitHub Pages"]:::host
    CDN["CDN / Static Site Host"]:::host
    Browser["Client Browser"]:::client
    YouTube["YouTube"]:::external
    Certificate["Certificate Service"]:::external

    %% Subgraph for repository contents
    subgraph "Git Repository" 
        direction TB
        ExerciseSolutions["1-exercise-solutions"]:::repo
        CopyOfCode["2-copy-of-code"]:::repo
        Scripts["scripts/"]:::repo
        Styles["styles/"]:::repo
        Assets["2-copy-of-code/images/"]:::repo
    end

    %% Relationships
    Developer -->|"git push"| GitRepo
    GitRepo -->|"deploy"| CICD
    CICD -->|"upload"| CDN
    Browser -->|"HTTP GET"| CDN
    Browser -->|"embed"| YouTube
    Browser -->|"redirect"| Certificate

    %% Click Events
    click ExerciseSolutions "https://github.com/supersimpledev/javascript-course/tree/main/1-exercise-solutions/"
    click CopyOfCode "https://github.com/supersimpledev/javascript-course/tree/main/2-copy-of-code/"
    click Scripts "https://github.com/supersimpledev/javascript-course/tree/main/scripts/"
    click Styles "https://github.com/supersimpledev/javascript-course/tree/main/styles/"
    click Assets "https://github.com/supersimpledev/javascript-course/tree/main/2-copy-of-code/images/"

    %% Styles
    classDef repo fill:#BBDEFB,stroke:#0D47A1,stroke-width:2px
    classDef host fill:#C8E6C9,stroke:#1B5E20,stroke-width:2px
    classDef client fill:#FFF9C4,stroke:#F57F17,stroke-width:2px
    classDef external fill:#E0E0E0,stroke:#424242,stroke-width:2px
    class Developer,Browser client
    class GitRepo,ExerciseSolutions,CopyOfCode,Scripts,Styles,Assets repo
    class CICD,CDN host
    class YouTube,Certificate external
```
