# shireen-elsayed/devpath architecture

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

- Interactive diagram: https://gitdiagram.com/shireen-elsayed/devpath
- Repository: https://github.com/shireen-elsayed/devpath

## Overview

DevPath is a browser-based learning-path application. A user registers or logs in, selects a development track and level, takes a track-specific assessment, then follows a roadmap whose lesson progress feeds the dashboard. Separate discovery pages show track-filtered projects and jobs matched against acquired skills. The browser clients communicate with a local JSON Server backed by `data/db.json`. Source excerpts establish these page-level behaviors and API calls; the README is empty, and unsampled page wiring and data details are not assumed.

Main entry points: [`js/track-selection.js`](https://github.com/shireen-elsayed/devpath/blob/main/js/track-selection.js) (Track Selection), [`js/roadmap.js`](https://github.com/shireen-elsayed/devpath/blob/main/js/roadmap.js) (Roadmap Progress), [`js/dashboard.js`](https://github.com/shireen-elsayed/devpath/blob/main/js/dashboard.js) (Learning Dashboard), [`js/login.js`](https://github.com/shireen-elsayed/devpath/blob/main/js/login.js) (Account Access)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_onboarding["Account and Track Setup"]
  node_auth["Account Access<br/>[login.js]"]
  node_track["Track Selection<br/>[track-selection.js]"]
end

subgraph group_learning["Learning and Progress"]
  node_quiz["Track Assessment<br/>[quiz.js]"]
  node_roadmap["Roadmap Progress<br/>[roadmap.js]"]
  node_dashboard["Learning Dashboard<br/>[dashboard.js]"]
end

subgraph group_discovery["Career and Projects"]
  node_projects["Project Catalog<br/>[projects.js]"]
  node_career["Career Matching<br/>[career-match.js]"]
end

subgraph group_data["Application Data"]
  node_api["JSON Server API"]
  node_db[("Application Records<br/>[db.json]")]
end

node_learner(("Learner"))

node_learner -->|"registers or logs in"| node_auth
node_auth -->|"reads and creates users"| node_api
node_learner -->|"chooses track"| node_track
node_track -->|"loads roadmaps; updates user"| node_api
node_track -->|"opens assessment"| node_quiz
node_quiz -->|"loads questions; updates user"| node_api
node_learner -.->|"continues learning"| node_roadmap
node_roadmap -->|"loads and saves progress"| node_api
node_dashboard -->|"loads user and learning data"| node_api
node_dashboard -->|"opens current module"| node_roadmap
node_learner -.->|"browses projects"| node_projects
node_projects -->|"loads projects"| node_api
node_learner -.->|"views job matches"| node_career
node_career -->|"loads users, jobs, roadmaps"| node_api
node_api -.->|"serves records"| node_db

click node_auth "https://github.com/shireen-elsayed/devpath/blob/main/js/login.js"
click node_track "https://github.com/shireen-elsayed/devpath/blob/main/js/track-selection.js"
click node_quiz "https://github.com/shireen-elsayed/devpath/blob/main/js/quiz.js"
click node_roadmap "https://github.com/shireen-elsayed/devpath/blob/main/js/roadmap.js"
click node_dashboard "https://github.com/shireen-elsayed/devpath/blob/main/js/dashboard.js"
click node_projects "https://github.com/shireen-elsayed/devpath/blob/main/js/projects.js"
click node_career "https://github.com/shireen-elsayed/devpath/blob/main/js/career-match.js"
click node_db "https://github.com/shireen-elsayed/devpath/blob/main/data/db.json"

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_auth,node_track toneBlue
class node_quiz,node_roadmap,node_dashboard toneAmber
class node_projects,node_career toneMint
class node_api,node_db toneRose
class node_learner toneIndigo
```

## Components

### Account and Track Setup

- [Account Access](https://github.com/shireen-elsayed/devpath/blob/main/js/login.js): `js/login.js`
- [Track Selection](https://github.com/shireen-elsayed/devpath/blob/main/js/track-selection.js): `js/track-selection.js`

### Learning and Progress

- [Track Assessment](https://github.com/shireen-elsayed/devpath/blob/main/js/quiz.js): `js/quiz.js`
- [Roadmap Progress](https://github.com/shireen-elsayed/devpath/blob/main/js/roadmap.js): `js/roadmap.js`
- [Learning Dashboard](https://github.com/shireen-elsayed/devpath/blob/main/js/dashboard.js): `js/dashboard.js`

### Career and Projects

- [Project Catalog](https://github.com/shireen-elsayed/devpath/blob/main/js/projects.js): `js/projects.js`
- [Career Matching](https://github.com/shireen-elsayed/devpath/blob/main/js/career-match.js): `js/career-match.js`

### Application Data

- **JSON Server API**
- [Application Records](https://github.com/shireen-elsayed/devpath/blob/main/data/db.json): `data/db.json`

### Other components

- **Learner**

## Connections

- Learner → Account Access: registers or logs in (evidence: `js/login.js`)
- Account Access → JSON Server API: reads and creates users (evidence: `js/login.js`)
- Learner → Track Selection: chooses track (evidence: `js/track-selection.js`)
- Track Selection → JSON Server API: loads roadmaps; updates user (evidence: `js/track-selection.js`)
- Track Selection → Track Assessment: opens assessment (evidence: `js/track-selection.js`)
- Track Assessment → JSON Server API: loads questions; updates user (evidence: `js/quiz.js`)
- Learner → Roadmap Progress: continues learning
- Roadmap Progress → JSON Server API: loads and saves progress (evidence: `js/roadmap.js`)
- Learning Dashboard → JSON Server API: loads user and learning data (evidence: `js/dashboard.js`)
- Learning Dashboard → Roadmap Progress: opens current module (evidence: `js/dashboard.js`)
- Learner → Project Catalog: browses projects
- Project Catalog → JSON Server API: loads projects (evidence: `js/projects.js`)
- Learner → Career Matching: views job matches
- Career Matching → JSON Server API: loads users, jobs, roadmaps (evidence: `js/career-match.js`)
- JSON Server API → Application Records: serves records
