# akhssasi/javabackend architecture

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

- Interactive diagram: https://gitdiagram.com/akhssasi/javabackend
- Repository: https://github.com/akhssasi/javabackend

## Overview

JavaPath is an offline browser-based learning platform for four Java and PostgreSQL courses. The learner opens the dashboard, chooses a course and section, and reads lessons in the lesson view; the course content is embedded in the site. The main runtime provides rendering, highlighting, search, and local learning state, while the stylesheet supplies responsive, theme, and print presentation. README documentation supports the feature relationships shown; no source excerpts were available to verify finer-grained calls or navigation.

Main entry points: [`lesson.html`](https://github.com/akhssasi/javabackend/blob/main/lesson.html) (Lesson reader), [`assets/course-data.js`](https://github.com/akhssasi/javabackend/blob/main/assets/course-data.js) (Embedded course data), [`assets/style.css`](https://github.com/akhssasi/javabackend/blob/main/assets/style.css) (Responsive themes and print), [`index.html`](https://github.com/akhssasi/javabackend/blob/main/index.html) (Course dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Learning pages"]
  node_dashboard["Course dashboard<br/>[index.html]"]
  node_course_view["Course sections<br/>[course.html]"]
  node_lesson_view["Lesson reader<br/>[lesson.html]"]
end

subgraph group_content["Course content"]
  node_course_data["Embedded course data<br/>[course-data.js]"]
end

subgraph group_runtime["Learning runtime"]
  node_renderer["Markdown renderer<br/>[app.js]"]
  node_syntax["Code highlighting<br/>[app.js]"]
  node_search["Global search<br/>[app.js]"]
  node_progress["Section progress<br/>[app.js]"]
  node_bookmarks["Section bookmarks<br/>[app.js]"]
  node_notes["Section notes<br/>[app.js]"]
  node_print["Print and PDF<br/>[app.js]"]
end

subgraph group_presentation["Presentation"]
  node_styles["Responsive themes and print<br/>[style.css]"]
end

node_learner(("Learner"))
node_browser_storage[("Browser localStorage")]

node_learner -->|"opens"| node_dashboard
node_learner -->|"reads course"| node_course_view
node_learner -->|"reads lessons"| node_lesson_view
node_course_data -->|"supplies courses"| node_dashboard
node_course_data -->|"supplies sections"| node_course_view
node_course_data -->|"supplies content"| node_lesson_view
node_renderer -->|"renders lessons"| node_lesson_view
node_syntax -->|"highlights code"| node_renderer
node_search -->|"searches lessons"| node_course_data
node_progress -->|"saves progress"| node_browser_storage
node_bookmarks -->|"saves bookmarks"| node_browser_storage
node_notes -->|"saves notes"| node_browser_storage
node_print -->|"prints lesson"| node_lesson_view
node_styles -->|"styles page"| node_dashboard
node_styles -->|"styles page"| node_course_view
node_styles -->|"styles page"| node_lesson_view

click node_dashboard "https://github.com/akhssasi/javabackend/blob/main/index.html"
click node_course_view "https://github.com/akhssasi/javabackend/blob/main/course.html"
click node_lesson_view "https://github.com/akhssasi/javabackend/blob/main/lesson.html"
click node_course_data "https://github.com/akhssasi/javabackend/blob/main/assets/course-data.js"
click node_renderer "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_syntax "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_search "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_progress "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_bookmarks "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_notes "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_print "https://github.com/akhssasi/javabackend/blob/main/assets/app.js"
click node_styles "https://github.com/akhssasi/javabackend/blob/main/assets/style.css"

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_dashboard,node_course_view,node_lesson_view toneBlue
class node_course_data,node_browser_storage toneAmber
class node_renderer,node_syntax,node_search,node_progress,node_bookmarks,node_notes,node_print toneMint
class node_styles toneRose
class node_learner toneIndigo
```

## Components

### Learning pages

- [Course dashboard](https://github.com/akhssasi/javabackend/blob/main/index.html): `index.html`
- [Course sections](https://github.com/akhssasi/javabackend/blob/main/course.html): `course.html`
- [Lesson reader](https://github.com/akhssasi/javabackend/blob/main/lesson.html): `lesson.html`

### Course content

- [Embedded course data](https://github.com/akhssasi/javabackend/blob/main/assets/course-data.js): `assets/course-data.js`

### Learning runtime

- [Markdown renderer](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Code highlighting](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Global search](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Section progress](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Section bookmarks](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Section notes](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`
- [Print and PDF](https://github.com/akhssasi/javabackend/blob/main/assets/app.js): `assets/app.js`

### Presentation

- [Responsive themes and print](https://github.com/akhssasi/javabackend/blob/main/assets/style.css): `assets/style.css`

### Other components

- **Learner**
- **Browser localStorage**

## Connections

- Learner → Course dashboard: opens (evidence: `README.md`)
- Learner → Course sections: reads course (evidence: `README.md`)
- Learner → Lesson reader: reads lessons (evidence: `README.md`)
- Embedded course data → Course dashboard: supplies courses (evidence: `README.md`)
- Embedded course data → Course sections: supplies sections (evidence: `README.md`)
- Embedded course data → Lesson reader: supplies content (evidence: `README.md`)
- Markdown renderer → Lesson reader: renders lessons (evidence: `README.md`)
- Code highlighting → Markdown renderer: highlights code (evidence: `README.md`)
- Global search → Embedded course data: searches lessons (evidence: `README.md`)
- Section progress → Browser localStorage: saves progress (evidence: `README.md`)
- Section bookmarks → Browser localStorage: saves bookmarks (evidence: `README.md`)
- Section notes → Browser localStorage: saves notes (evidence: `README.md`)
- Print and PDF → Lesson reader: prints lesson (evidence: `README.md`)
- Responsive themes and print → Course dashboard: styles page (evidence: `README.md`)
- Responsive themes and print → Course sections: styles page (evidence: `README.md`)
- Responsive themes and print → Lesson reader: styles page (evidence: `README.md`)
