# abhishekanandam-epam/gh-certifications-mock-drill architecture

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

- Interactive diagram: https://gitdiagram.com/abhishekanandam-epam/gh-certifications-mock-drill
- Repository: https://github.com/abhishekanandam-epam/gh-certifications-mock-drill

## Overview

GH Certifications Mock Drill is a browser-based certification study app. A learner selects a certification, then starts either an instant-feedback, resumable practice session or a timed mock exam; completed attempts are saved locally and surfaced as score history and weak-domain analytics. The client retrieves certification metadata, domains, and question sets from an Express API backed by per-certification JSON banks. The graph covers the main user workflow and its storage, grading, and question-delivery layers; unexcerpted internals are included only where the README documents their role.

Main entry points: [`client/src/pages/Exam.tsx`](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Exam.tsx) (Mock Exam), [`client/src/App.tsx`](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/App.tsx) (App Routes), [`client/src/pages/Practice.tsx`](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Practice.tsx) (Practice Session), [`client/src/lib/storage.ts`](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/storage.ts) (Browser Progress Store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Client Application"]
  node_app["App Routes<br/>[App.tsx]"]
  node_nav["Certification Nav<br/>[NavBar.tsx]"]
  node_cert["Certification Context<br/>[certification.tsx]"]
  node_types["Client Data Types<br/>[types.ts]"]
end

subgraph group_learning["Study Sessions"]
  node_practice["Practice Session<br/>[Practice.tsx]"]
  node_exam["Mock Exam<br/>[Exam.tsx]"]
  node_question["Question Card<br/>[QuestionCard.tsx]"]
  node_progressbar["Session Progress<br/>[ProgressBar.tsx]"]
  node_timer["Exam Timer<br/>[Timer.tsx]"]
  node_grading["Attempt Grading<br/>[grading.ts]"]
  node_summary["Score Summary<br/>[ScoreSummary.tsx]"]
end

subgraph group_progress["Progress Tracking"]
  node_dashboard["Dashboard Analytics<br/>[Dashboard.tsx]"]
  node_history["Attempt History<br/>[History.tsx]"]
  node_detail["Attempt Detail<br/>[AttemptDetail.tsx]"]
  node_storage[("Browser Progress Store<br/>[storage.ts]")]
end

subgraph group_content["Question Delivery"]
  node_api["API Client<br/>[api.ts]"]
  node_routes["Question API<br/>[index.ts]"]
  node_selection["Question Selection<br/>[shuffle.ts]"]
  node_data["Certification Data Loader<br/>[data.ts]"]
  node_banks["Question Banks"]
end

node_learner(("Learner"))

node_learner -->|"opens app"| node_app
node_app -->|"provides context"| node_cert
node_app -->|"routes to"| node_practice
node_app -->|"routes to"| node_exam
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_history
node_app -->|"routes to"| node_detail
node_nav -->|"reads selection"| node_cert
node_cert -->|"fetches certifications"| node_api
node_cert -->|"loads and saves choice"| node_storage
node_practice -->|"fetches domains and questions"| node_api
node_exam -->|"fetches domains and questions"| node_api
node_practice -->|"saves session and attempt"| node_storage
node_exam -->|"saves attempt"| node_storage
node_practice -->|"builds attempt"| node_grading
node_exam -->|"builds attempt"| node_grading
node_practice -->|"renders question"| node_question
node_exam -->|"renders question"| node_question
node_practice -->|"renders progress"| node_progressbar
node_exam -->|"renders progress"| node_progressbar
node_exam -->|"starts countdown"| node_timer
node_practice -->|"shows result"| node_summary
node_exam -->|"shows result"| node_summary
node_dashboard -->|"fetches domains"| node_api
node_dashboard -->|"reads progress"| node_storage
node_history -->|"reads attempts"| node_storage
node_detail -->|"loads attempt"| node_storage
node_api -->|"requests API"| node_routes
node_routes -->|"loads certification content"| node_data
node_routes -->|"shuffles and draws"| node_selection
node_data -->|"reads JSON banks"| node_banks

click node_app "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/App.tsx"
click node_nav "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/NavBar.tsx"
click node_cert "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/certification.tsx"
click node_practice "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Practice.tsx"
click node_exam "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Exam.tsx"
click node_question "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/QuestionCard.tsx"
click node_progressbar "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/ProgressBar.tsx"
click node_timer "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/Timer.tsx"
click node_grading "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/grading.ts"
click node_summary "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/ScoreSummary.tsx"
click node_dashboard "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Dashboard.tsx"
click node_history "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/History.tsx"
click node_detail "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/AttemptDetail.tsx"
click node_storage "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/storage.ts"
click node_types "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/types.ts"
click node_api "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/api.ts"
click node_routes "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/index.ts"
click node_selection "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/shuffle.ts"
click node_data "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/data.ts"
click node_banks "https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/tree/main/server/data"

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_nav,node_cert,node_types toneBlue
class node_practice,node_exam,node_question,node_progressbar,node_timer,node_grading,node_summary toneAmber
class node_dashboard,node_history,node_detail,node_storage toneMint
class node_api,node_routes,node_selection,node_data,node_banks toneRose
class node_learner toneIndigo
```

## Components

### Client Application

- [App Routes](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/App.tsx): `client/src/App.tsx`
- [Certification Nav](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/NavBar.tsx): `client/src/components/NavBar.tsx`
- [Certification Context](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/certification.tsx): `client/src/lib/certification.tsx`
- [Client Data Types](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/types.ts): `client/src/types.ts`

### Study Sessions

- [Practice Session](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Practice.tsx): `client/src/pages/Practice.tsx`
- [Mock Exam](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Exam.tsx): `client/src/pages/Exam.tsx`
- [Question Card](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/QuestionCard.tsx): `client/src/components/QuestionCard.tsx`
- [Session Progress](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/ProgressBar.tsx): `client/src/components/ProgressBar.tsx`
- [Exam Timer](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/Timer.tsx): `client/src/components/Timer.tsx`
- [Attempt Grading](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/grading.ts): `client/src/lib/grading.ts`
- [Score Summary](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/components/ScoreSummary.tsx): `client/src/components/ScoreSummary.tsx`

### Progress Tracking

- [Dashboard Analytics](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/Dashboard.tsx): `client/src/pages/Dashboard.tsx`
- [Attempt History](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/History.tsx): `client/src/pages/History.tsx`
- [Attempt Detail](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/pages/AttemptDetail.tsx): `client/src/pages/AttemptDetail.tsx`
- [Browser Progress Store](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/storage.ts): `client/src/lib/storage.ts`

### Question Delivery

- [API Client](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/client/src/lib/api.ts): `client/src/lib/api.ts`
- [Question API](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/index.ts): `server/src/index.ts`
- [Question Selection](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/shuffle.ts): `server/src/shuffle.ts`
- [Certification Data Loader](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/blob/main/server/src/data.ts): `server/src/data.ts`
- [Question Banks](https://github.com/abhishekanandam-epam/gh-certifications-mock-drill/tree/main/server/data): `server/data`

### Other components

- **Learner**

## Connections

- Learner → App Routes: opens app (evidence: `README.md`)
- App Routes → Certification Context: provides context (evidence: `client/src/App.tsx`)
- App Routes → Practice Session: routes to (evidence: `client/src/App.tsx`)
- App Routes → Mock Exam: routes to (evidence: `client/src/App.tsx`)
- App Routes → Dashboard Analytics: routes to (evidence: `client/src/App.tsx`)
- App Routes → Attempt History: routes to (evidence: `client/src/App.tsx`)
- App Routes → Attempt Detail: routes to (evidence: `client/src/App.tsx`)
- Certification Nav → Certification Context: reads selection (evidence: `client/src/components/NavBar.tsx`)
- Certification Context → API Client: fetches certifications (evidence: `client/src/lib/certification.tsx`)
- Certification Context → Browser Progress Store: loads and saves choice (evidence: `client/src/lib/certification.tsx`)
- Practice Session → API Client: fetches domains and questions (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → API Client: fetches domains and questions (evidence: `client/src/pages/Exam.tsx`)
- Practice Session → Browser Progress Store: saves session and attempt (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → Browser Progress Store: saves attempt (evidence: `client/src/pages/Exam.tsx`)
- Practice Session → Attempt Grading: builds attempt (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → Attempt Grading: builds attempt (evidence: `client/src/pages/Exam.tsx`)
- Practice Session → Question Card: renders question (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → Question Card: renders question (evidence: `client/src/pages/Exam.tsx`)
- Practice Session → Session Progress: renders progress (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → Session Progress: renders progress (evidence: `client/src/pages/Exam.tsx`)
- Mock Exam → Exam Timer: starts countdown (evidence: `client/src/pages/Exam.tsx`)
- Practice Session → Score Summary: shows result (evidence: `client/src/pages/Practice.tsx`)
- Mock Exam → Score Summary: shows result (evidence: `client/src/pages/Exam.tsx`)
- Dashboard Analytics → API Client: fetches domains (evidence: `client/src/pages/Dashboard.tsx`)
- Dashboard Analytics → Browser Progress Store: reads progress (evidence: `client/src/pages/Dashboard.tsx`)
- Attempt History → Browser Progress Store: reads attempts (evidence: `client/src/pages/History.tsx`)
- Attempt Detail → Browser Progress Store: loads attempt (evidence: `client/src/pages/AttemptDetail.tsx`)
- API Client → Question API: requests API (evidence: `client/src/lib/api.ts`)
- Question API → Certification Data Loader: loads certification content (evidence: `server/src/index.ts`)
- Question API → Question Selection: shuffles and draws (evidence: `server/src/index.ts`)
- Certification Data Loader → Question Banks: reads JSON banks (evidence: `server/src/data.ts`)
