# rahulhanje/cba-tech-repo architecture

> Architecture diagram of the GitHub repository rahulhanje/cba-tech-repo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-07-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rahulhanje/cba-tech-repo
- Repository: https://github.com/rahulhanje/cba-tech-repo

## Overview

##### Project Type & Purpose
- Type: Static front-end demo/tutorial repository (no backend, no database).
- Purpose: A set of standalone HTML pages illustrating JS concepts (variables, loops, arrays, functions, events, async, TypeScript defaults, etc.).

##### File Structure
- Root:
– README.md
– 27_4b_…_master.zip (archive)
- /javascript:
– .vscode/ (editor configs)
– ~20 .html demo pages (EventDemo.html, arrayexample.html, internaljsdemo.html, etc.)
– .js files (script.js, varibles.js, defltParm.js)
– defltParm.ts (TypeScript example)
– a few .txt and NotesJS files.

No backend folder, no package.json, no build scripts beyond the single .ts file.

##### Relationships & Data Flow
1. Developer edits files in VS Code → commits to GitHub
2. (Optional) CI builds .ts → .js, lints, then deploys
3. Hosting serves .html + .js assets over HTTP(S)
4. User’s browser fetches pages → JS runs in-page
5. User interacts with UI (clicks, keys) → event handlers in the scripts fire

##### Patterns & Tech
- Pattern: Static site (no runtime server), modular demos per HTML page
- Tech:
– HTML5 pages with inline/external JS
– TypeScript (single demo) → compiled to JS

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Developer Environment"
        IDE["VS Code"]:::devtools
        VSCODE[".vscode (Editor Config)"]:::devtools
        IDE --> VSCODE
    end

    subgraph "Source Control & CI/CD"
        GH["GitHub Repo"]:::devtools
        README["README.md"]:::devtools
        ZIP["27_4b_466f_186b_48fe_9a01_e7a9a2de86e7_master.zip"]:::devtools
        IDE -->|"git push"| GH
        GH --> README
        GH --> ZIP
    end

    GH -->|"CI build TS→JS & deploy"| HOST

    subgraph "Static Hosting & Assets"
        HOST["GitHub Pages / Netlify / S3"]:::hosting
        ASSETS["Static Asset Bundle (/javascript)"]:::hosting
        HOST --> ASSETS
        ASSETS --> INDEX["index.html (Entry Point)"]:::hosting
        ASSETS --> SCRIPT["script.js (Core Demo Script)"]:::hosting
        ASSETS --> VARIABLES_HTML["variables.html"]:::hosting
        ASSETS --> VARIBLES_JS["varibles.js"]:::hosting
        ASSETS --> VARIABLESHADOW["variableshadow.html"]:::hosting
        ASSETS --> ARRAYEX_HTML["arrayexample.html"]:::hosting
        ASSETS --> ARRAYS_HTML["arrays.html"]:::hosting
        ASSETS --> ARRAYMETHOD_HTML["arraymethod.html"]:::hosting
        ASSETS --> FUNCTIONDEMO["functiondemo.html"]:::hosting
        ASSETS --> ARROWFUNC["arrowfunc.html"]:::hosting
        ASSETS --> EVENTDEMO["EventDemo.html"]:::hosting
        ASSETS --> DYNAMICEVENT["dynamicevevent.html"]:::hosting
        ASSETS --> FIRSTCALLBACK["firstCallback.html"]:::hosting
        ASSETS --> KEYUP["keyup.html"]:::hosting
        ASSETS --> ASYNCALLBACK["asyncallback.html"]:::hosting
        ASSETS --> DEFLTTS["defltParm.ts"]:::hosting
        ASSETS --> DEFLTJS["defltParm.js"]:::hosting
        ASSETS --> NOTESJS["NotesJS"]:::hosting
        ASSETS --> NOTES["notes"]:::hosting
        ASSETS --> EXERCISE2["Exercise 2.txt"]:::hosting
        ASSETS --> EX1["Javascript Basic Exercise 1"]:::hosting
        ASSETS --> INTERNALJS["internaljsdemo.html"]:::hosting
        ASSETS --> IDSELECT["idselectorexample.html"]:::hosting
        ASSETS --> JSDATA["jsData.html"]:::hosting
        ASSETS --> TERNARY["ternarydemo.html"]:::hosting
        ASSETS --> WHILELOOP["whileloop.html"]:::hosting
        ASSETS --> ARITH["arithmeticoperator.html"]:::hosting
        ASSETS --> FORDEMO["fordemo.html"]:::hosting
        ASSETS --> OBJECTDEMO["objectdemo.html"]:::hosting
        ASSETS --> TEST1["Test1.html"]:::hosting
    end

    HOST -->|"HTTP GET HTML/JS"| BROWSER

    subgraph "User Runtime"
        BROWSER["Web Browser"]:::runtime
        JSENG["JS Engine"]:::runtime
        DOM["DOM & Event Handlers"]:::runtime
        BROWSER --> JSENG
        JSENG --> DOM
        DOM --> JSENG
    end

    classDef devtools fill:#cce5ff,stroke:#333,stroke-width:1px
    classDef hosting fill:#d4f8d4,stroke:#333,stroke-width:1px
    classDef runtime fill:#ffe5b4,stroke:#333,stroke-width:1px

    click VSCODE "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/.vscode"
    click README "https://github.com/rahulhanje/cba-tech-repo/blob/main/README.md"
    click ZIP "https://github.com/rahulhanje/cba-tech-repo/blob/main/27_4b_466f_186b_48fe_9a01_e7a9a2de86e7_master.zip"
    click ASSETS "https://github.com/rahulhanje/cba-tech-repo/tree/main/javascript/"
    click INDEX "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/index.html"
    click SCRIPT "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/script.js"
    click VARIABLES_HTML "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/variables.html"
    click VARIBLES_JS "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/varibles.js"
    click VARIABLESHADOW "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/variableshadow.html"
    click ARRAYEX_HTML "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/arrayexample.html"
    click ARRAYS_HTML "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/arrays.html"
    click ARRAYMETHOD_HTML "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/arraymethod.html"
    click FUNCTIONDEMO "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/functiondemo.html"
    click ARROWFUNC "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/arrowfunc.html"
    click EVENTDEMO "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/EventDemo.html"
    click DYNAMICEVENT "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/dynamicevevent.html"
    click FIRSTCALLBACK "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/firstCallback.html"
    click KEYUP "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/keyup.html"
    click ASYNCALLBACK "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/asyncallback.html"
    click DEFLTTS "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/defltParm.ts"
    click DEFLTJS "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/defltParm.js"
    click NOTESJS "https://github.com/rahulhanje/cba-tech-repo/tree/main/javascript/NotesJS"
    click NOTES "https://github.com/rahulhanje/cba-tech-repo/tree/main/javascript/notes"
    click EXERCISE2 "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/Exercise 2.txt"
    click EX1 "https://github.com/rahulhanje/cba-tech-repo/tree/main/javascript/Javascript Basic Exercise 1"
    click INTERNALJS "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/internaljsdemo.html"
    click IDSELECT "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/idselectorexample.html"
    click JSDATA "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/jsData.html"
    click TERNARY "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/ternarydemo.html"
    click WHILELOOP "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/whileloop.html"
    click ARITH "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/arithmeticoperator.html"
    click FORDEMO "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/fordemo.html"
    click OBJECTDEMO "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/objectdemo.html"
    click TEST1 "https://github.com/rahulhanje/cba-tech-repo/blob/main/javascript/Test1.html"
```
