# cloudguy01/learningplatform architecture

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

- Interactive diagram: https://gitdiagram.com/cloudguy01/learningplatform
- Repository: https://github.com/cloudguy01/learningplatform

## Overview

This is a browser-based AZ-104 question-study simulator. Learners load a question bank, browse and answer interactive questions, then retain study progress and preferences. A separate offline converter prepares scraped HTML as structured JSON/XML and migrates progress; an image downloader is also present. The README is empty, and the excerpts do not show the complete app startup or persistence wiring, so uncertain connections are omitted.

Main entry points: [`app.js`](https://github.com/cloudguy01/learningplatform/blob/main/app.js) (Question and case views), [`convert_db.py`](https://github.com/cloudguy01/learningplatform/blob/main/convert_db.py) (Bank and schema converter), [`download_images.py`](https://github.com/cloudguy01/learningplatform/blob/main/download_images.py) (Exhibit image downloader), [`db104.db`](https://github.com/cloudguy01/learningplatform/blob/main/db104.db) (Scraped question bank)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_study["Study simulator"]
  node_app["Question study app<br/>[app.js]"]
  node_bank_ingest["Bank import and parsing<br/>[app.js]"]
  node_question_views["Question and case views<br/>[app.js]"]
  node_answer_tracking["Answer and statistics<br/>[app.js]"]
  node_study_controls["Filters and study controls<br/>[app.js]"]
  node_progress["Study progress<br/>[progress.json]"]
end

subgraph group_prep["Bank preparation"]
  node_legacy_html["Scraped question bank<br/>[db104.db]"]
  node_converter["Bank and schema converter<br/>[convert_db.py]"]
  node_bank_outputs["Structured bank exports<br/>[convert_db.py]"]
end

subgraph group_assets["Image assets"]
  node_image_downloader["Exhibit image downloader<br/>[download_images.py]"]
  node_image_files["Local exhibit images"]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_app
node_app -->|"loads bank"| node_bank_ingest
node_bank_ingest -->|"builds questions"| node_question_views
node_learner -->|"answers questions"| node_question_views
node_question_views -->|"records answers"| node_answer_tracking
node_learner -->|"filters study"| node_study_controls
node_converter -->|"parses source"| node_legacy_html
node_converter -->|"writes exports"| node_bank_outputs
node_image_downloader -->|"reads image links"| node_legacy_html
node_image_downloader -->|"downloads images"| node_image_files

click node_app "https://github.com/cloudguy01/learningplatform/blob/main/app.js"
click node_bank_ingest "https://github.com/cloudguy01/learningplatform/blob/main/app.js"
click node_question_views "https://github.com/cloudguy01/learningplatform/blob/main/app.js"
click node_answer_tracking "https://github.com/cloudguy01/learningplatform/blob/main/app.js"
click node_study_controls "https://github.com/cloudguy01/learningplatform/blob/main/app.js"
click node_progress "https://github.com/cloudguy01/learningplatform/blob/main/progress.json"
click node_legacy_html "https://github.com/cloudguy01/learningplatform/blob/main/db104.db"
click node_converter "https://github.com/cloudguy01/learningplatform/blob/main/convert_db.py"
click node_bank_outputs "https://github.com/cloudguy01/learningplatform/blob/main/convert_db.py"
click node_image_downloader "https://github.com/cloudguy01/learningplatform/blob/main/download_images.py"
click node_image_files "https://github.com/cloudguy01/learningplatform/tree/main/images"

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_app,node_bank_ingest,node_question_views,node_answer_tracking,node_study_controls,node_progress toneBlue
class node_legacy_html,node_converter,node_bank_outputs toneAmber
class node_image_downloader,node_image_files toneMint
class node_learner toneIndigo
```

## Components

### Study simulator

- [Question study app](https://github.com/cloudguy01/learningplatform/blob/main/app.js): `app.js`
- [Bank import and parsing](https://github.com/cloudguy01/learningplatform/blob/main/app.js): `app.js`
- [Question and case views](https://github.com/cloudguy01/learningplatform/blob/main/app.js): `app.js`
- [Answer and statistics](https://github.com/cloudguy01/learningplatform/blob/main/app.js): `app.js`
- [Filters and study controls](https://github.com/cloudguy01/learningplatform/blob/main/app.js): `app.js`
- [Study progress](https://github.com/cloudguy01/learningplatform/blob/main/progress.json): `progress.json`

### Bank preparation

- [Scraped question bank](https://github.com/cloudguy01/learningplatform/blob/main/db104.db): `db104.db`
- [Bank and schema converter](https://github.com/cloudguy01/learningplatform/blob/main/convert_db.py): `convert_db.py`
- [Structured bank exports](https://github.com/cloudguy01/learningplatform/blob/main/convert_db.py): `convert_db.py`

### Image assets

- [Exhibit image downloader](https://github.com/cloudguy01/learningplatform/blob/main/download_images.py): `download_images.py`
- [Local exhibit images](https://github.com/cloudguy01/learningplatform/tree/main/images): `images`

### Other components

- **Learner**

## Connections

- Learner → Question study app: uses (evidence: `app.js`)
- Question study app → Bank import and parsing: loads bank (evidence: `app.js`)
- Bank import and parsing → Question and case views: builds questions (evidence: `app.js`)
- Learner → Question and case views: answers questions (evidence: `app.js`)
- Question and case views → Answer and statistics: records answers (evidence: `app.js`)
- Learner → Filters and study controls: filters study (evidence: `app.js`)
- Bank and schema converter → Scraped question bank: parses source (evidence: `convert_db.py`)
- Bank and schema converter → Structured bank exports: writes exports (evidence: `convert_db.py`)
- Exhibit image downloader → Scraped question bank: reads image links (evidence: `download_images.py`)
- Exhibit image downloader → Local exhibit images: downloads images (evidence: `download_images.py`)
