# fnovoas/ms365-i-final-exam-prep architecture

> Architecture diagram of the GitHub repository fnovoas/ms365-i-final-exam-prep, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fnovoas/ms365-i-final-exam-prep
- Repository: https://github.com/fnovoas/ms365-i-final-exam-prep

## Overview

This is a browser-based Microsoft 365 identity and services practice quiz. The user opens the page, the entry point loads the question bank and initializes the quiz; learners filter questions, answer and check them, then review scores and weak topics. Theme controls and Glean PDF export are supporting capabilities. The available excerpts show these runtime links; unsampled HTML and quiz-engine sections limit evidence for page wiring and some actions.

Main entry points: [`js/app.js`](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/app.js) (App entry), [`js/quiz.js`](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/quiz.js) (Quiz engine), [`index.html`](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/index.html) (Quiz page), [`js/theme.js`](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/theme.js) (Theme toggle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Quiz content"]
  node_bank["Question bank"]
end

subgraph group_runtime["Quiz runtime"]
  node_entry["App entry<br/>[app.js]"]
  node_engine["Quiz engine<br/>[quiz.js]"]
  node_helpers["Shared helpers<br/>[utils.js]"]
end

subgraph group_presentation["Page experience"]
  node_theme["Theme toggle<br/>[theme.js]"]
  node_styles["Visual styles<br/>[styles.css]"]
end

node_learner(("Learner"))
node_page["Quiz page<br/>[index.html]"]
node_browser[("Browser storage")]
node_glean["Glean host"]

node_learner -->|"opens"| node_page
node_page -.->|"loads"| node_entry
node_page -.->|"loads data"| node_bank
node_entry -->|"reads questions"| node_bank
node_entry -->|"creates quiz"| node_engine
node_entry -->|"initializes"| node_theme
node_engine -->|"uses helpers"| node_helpers
node_engine -.->|"renders quiz"| node_page
node_learner -.->|"answers"| node_engine
node_engine -.->|"shows results"| node_learner
node_theme -->|"stores theme"| node_browser
node_entry -->|"registers export"| node_glean
node_glean -->|"sends action"| node_entry
node_styles -.->|"styles page"| node_page

click node_page "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/index.html"
click node_entry "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/app.js"
click node_bank "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/data/ms365-identity-services-1.js"
click node_engine "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/quiz.js"
click node_helpers "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/utils.js"
click node_theme "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/theme.js"
click node_styles "https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/css/styles.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_bank toneBlue
class node_entry,node_engine,node_helpers,node_browser toneAmber
class node_theme,node_styles toneMint
class node_learner,node_glean toneIndigo
class node_page toneTeal
```

## Components

### Quiz content

- [Question bank](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/data/ms365-identity-services-1.js): `data/ms365-identity-services-1.js`

### Quiz runtime

- [App entry](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/app.js): `js/app.js`
- [Quiz engine](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/quiz.js): `js/quiz.js`
- [Shared helpers](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/utils.js): `js/utils.js`

### Page experience

- [Theme toggle](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/js/theme.js): `js/theme.js`
- [Visual styles](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/css/styles.css): `css/styles.css`

### Other components

- **Learner**
- [Quiz page](https://github.com/fnovoas/ms365-i-final-exam-prep/blob/main/index.html): `index.html`
- **Browser storage**
- **Glean host**

## Connections

- Learner → Quiz page: opens
- Quiz page → App entry: loads
- Quiz page → Question bank: loads data
- App entry → Question bank: reads questions (evidence: `js/app.js`)
- App entry → Quiz engine: creates quiz (evidence: `js/app.js`)
- App entry → Theme toggle: initializes (evidence: `js/app.js`)
- Quiz engine → Shared helpers: uses helpers
- Quiz engine → Quiz page: renders quiz
- Learner → Quiz engine: answers
- Quiz engine → Learner: shows results
- Theme toggle → Browser storage: stores theme (evidence: `js/theme.js`)
- App entry → Glean host: registers export (evidence: `js/app.js`)
- Glean host → App entry: sends action (evidence: `js/app.js`)
- Visual styles → Quiz page: styles page
