# hareeshgt/java-learning-website architecture

> Architecture diagram of the GitHub repository hareeshgt/java-learning-website, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hareeshgt/java-learning-website
- Repository: https://github.com/hareeshgt/java-learning-website

## Overview

Java Learner is a browser-based Java learning site whose main workflow is browsing lessons, practicing with problems, and checking understanding through quizzes; it also offers video playlists and an optional Java code runner. The static site shares search, theme, progress, bookmarks, and quiz behavior through its frontend assets. The compiler is a separate PHP-backed workflow that accepts code and input, compiles and runs the program, then displays results. Relationships for the compiler are supported by source excerpts; static-site capabilities and video delivery are documented in the README.

Main entry points: [`Compiler Java/compiler.php`](https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/compiler.php) (Compile and run), [`Compiler Java/index.php`](https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/index.php) (Compiler interface), [`index.html`](https://github.com/hareeshgt/java-learning-website/blob/main/index.html) (Home page), [`videos.html`](https://github.com/hareeshgt/java-learning-website/blob/main/videos.html) (Video playlists)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Learning content"]
  node_home["Home page<br/>[index.html]"]
  node_lessons["Java lessons<br/>[text.html]"]
  node_lesson_pages["Lesson pages"]
  node_video_pages["Video playlists<br/>[videos.html]"]
end

subgraph group_activities["Practice and assessment"]
  node_practice["Practice problems<br/>[practice code.html]"]
  node_quizzes["Quizzes<br/>[quizzes.html]"]
end

subgraph group_frontend["Shared frontend"]
  node_lesson_data["Lesson index<br/>[data.js]"]
  node_quiz_data["Quiz questions<br/>[quiz-data.js]"]
  node_site_logic["Site interactions<br/>[site.js]"]
  node_site_styles["Themes and components<br/>[site.css]"]
  node_local_storage[("Browser storage")]
end

subgraph group_runner["Code runner"]
  node_compiler_ui["Compiler interface<br/>[index.php]"]
  node_compiler_handler["Compile and run<br/>[compiler.php]"]
  node_java_toolchain["Java toolchain"]
end

node_learner(("Learner"))
node_video_host["Video host"]

node_learner -->|"opens"| node_home
node_home -->|"browse lessons"| node_lessons
node_learner -->|"watches"| node_video_pages
node_video_pages -->|"streams videos"| node_video_host
node_learner -->|"solves problems"| node_practice
node_learner -->|"takes quizzes"| node_quizzes
node_site_logic -->|"saves preferences"| node_local_storage
node_learner -->|"submits code"| node_compiler_ui
node_compiler_ui -->|"posts code"| node_compiler_handler
node_compiler_handler -->|"compiles and runs"| node_java_toolchain
node_compiler_handler -->|"redirects results"| node_compiler_ui

click node_home "https://github.com/hareeshgt/java-learning-website/blob/main/index.html"
click node_lessons "https://github.com/hareeshgt/java-learning-website/blob/main/text.html"
click node_lesson_pages "https://github.com/hareeshgt/java-learning-website/blob/main/Datatypes%20and%20Variables.html"
click node_video_pages "https://github.com/hareeshgt/java-learning-website/blob/main/videos.html"
click node_practice "https://github.com/hareeshgt/java-learning-website/blob/main/practice%20code.html"
click node_quizzes "https://github.com/hareeshgt/java-learning-website/blob/main/quizzes.html"
click node_lesson_data "https://github.com/hareeshgt/java-learning-website/blob/main/assets/data.js"
click node_quiz_data "https://github.com/hareeshgt/java-learning-website/blob/main/assets/quiz-data.js"
click node_site_logic "https://github.com/hareeshgt/java-learning-website/blob/main/assets/site.js"
click node_site_styles "https://github.com/hareeshgt/java-learning-website/blob/main/assets/site.css"
click node_compiler_ui "https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/index.php"
click node_compiler_handler "https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/compiler.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_home,node_lessons,node_lesson_pages,node_video_pages toneBlue
class node_practice,node_quizzes toneAmber
class node_lesson_data,node_quiz_data,node_site_logic,node_site_styles,node_local_storage toneMint
class node_compiler_ui,node_compiler_handler,node_java_toolchain toneRose
class node_learner,node_video_host toneIndigo
```

## Components

### Learning content

- [Home page](https://github.com/hareeshgt/java-learning-website/blob/main/index.html): `index.html`
- [Java lessons](https://github.com/hareeshgt/java-learning-website/blob/main/text.html): `text.html`
- [Lesson pages](https://github.com/hareeshgt/java-learning-website/blob/main/Datatypes%20and%20Variables.html): `Datatypes and Variables.html`
- [Video playlists](https://github.com/hareeshgt/java-learning-website/blob/main/videos.html): `videos.html`

### Practice and assessment

- [Practice problems](https://github.com/hareeshgt/java-learning-website/blob/main/practice%20code.html): `practice code.html`
- [Quizzes](https://github.com/hareeshgt/java-learning-website/blob/main/quizzes.html): `quizzes.html`

### Shared frontend

- [Lesson index](https://github.com/hareeshgt/java-learning-website/blob/main/assets/data.js): `assets/data.js`
- [Quiz questions](https://github.com/hareeshgt/java-learning-website/blob/main/assets/quiz-data.js): `assets/quiz-data.js`
- [Site interactions](https://github.com/hareeshgt/java-learning-website/blob/main/assets/site.js): `assets/site.js`
- [Themes and components](https://github.com/hareeshgt/java-learning-website/blob/main/assets/site.css): `assets/site.css`
- **Browser storage**

### Code runner

- [Compiler interface](https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/index.php): `Compiler Java/index.php`
- [Compile and run](https://github.com/hareeshgt/java-learning-website/blob/main/Compiler%20Java/compiler.php): `Compiler Java/compiler.php`
- **Java toolchain**

### Other components

- **Learner**
- **Video host**

## Connections

- Learner → Home page: opens (evidence: `README.md`)
- Home page → Java lessons: browse lessons (evidence: `README.md`)
- Learner → Video playlists: watches (evidence: `README.md`)
- Video playlists → Video host: streams videos (evidence: `README.md`)
- Learner → Practice problems: solves problems (evidence: `README.md`)
- Learner → Quizzes: takes quizzes (evidence: `README.md`)
- Site interactions → Browser storage: saves preferences (evidence: `README.md`)
- Learner → Compiler interface: submits code (evidence: `Compiler Java/index.php`)
- Compiler interface → Compile and run: posts code (evidence: `Compiler Java/index.php`)
- Compile and run → Java toolchain: compiles and runs (evidence: `Compiler Java/compiler.php`)
- Compile and run → Compiler interface: redirects results (evidence: `Compiler Java/compiler.php`)
