# mileseducation-tech/miles-masterclass architecture

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

- Interactive diagram: https://gitdiagram.com/mileseducation-tech/miles-masterclass
- Repository: https://github.com/mileseducation-tech/miles-masterclass

## Overview

Miles Masterclass is a learning and professional-development platform with learner-facing course formats, assessments, webinars, account features, payment, tracking, partner pages, and a separate administrative surface. A learner enters through the Angular application routes, finds learning content, studies chapters or sessions, and can proceed to an assessment and feedback; payment and progress tracking are distinct product branches. The graph includes major tree-visible capabilities, but many source files were not sampled, so uncertain internal calls are omitted rather than inferred.

Main entry points: [`src/app/features/features.routes.ts`](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/features.routes.ts) (Feature Routes), [`src/app/features/offerings/offerings.routes.ts`](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/offerings.routes.ts) (Course Formats), [`src/app/features/offerings/pages/course-feedback/course-feedback.ts`](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/pages/course-feedback/course-feedback.ts) (Course Feedback), [`src/app/features/offerings/masterclass/masterclass.routes.ts`](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/masterclass/masterclass.routes.ts) (Masterclass Learning)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application Runtime"]
  node_app["Application Shell<br/>[app.ts]"]
  node_routing["Route Dispatch<br/>[app.routes.ts]"]
  node_feature_routes["Feature Routes<br/>[features.routes.ts]"]
  node_api["Platform API<br/>[api-client.ts]"]
  node_environment["Environment Config<br/>[environment.ts]"]
end

subgraph group_learning["Learning Content"]
  node_library["Content Library<br/>[library.routes.ts]"]
  node_offerings["Course Formats"]
  node_masterclass["Masterclass Learning"]
  node_podcast["Podcast Learning<br/>[podcast.routes.ts]"]
  node_microlearning["Microlearning"]
  node_assessment["Assessment"]
  node_feedback["Course Feedback<br/>[course-feedback.ts]"]
  node_webinars["Webinars<br/>[webinar.routes.ts]"]
  node_ai_labs["AI Labs<br/>[ai-labs.ts]"]
end

subgraph group_engagement["Learner Services"]
  node_auth["Authentication<br/>[auth-facade.ts]"]
  node_tracking["Learning Trackers<br/>[cpe-tracker.ts]"]
end

subgraph group_commerce["Commerce and Partners"]
  node_payment["Payment Flow<br/>[payment-facade.ts]"]
  node_partner_pages["Partner Pages<br/>[partner.routes.ts]"]
end

subgraph group_admin["Administration"]
  node_admin["Admin Console<br/>[admin.routes.ts]"]
end

node_learner(("Learner"))
node_external_services["External Services"]

node_learner -.->|"uses"| node_app
node_app -->|"loads routes"| node_routing
node_routing -->|"lazy-loads"| node_feature_routes
node_feature_routes -.->|"routes to"| node_auth
node_feature_routes -.->|"routes to"| node_offerings
node_feature_routes -.->|"routes to"| node_library
node_feature_routes -.->|"routes to"| node_payment
node_feature_routes -.->|"routes to"| node_partner_pages
node_feature_routes -.->|"routes to"| node_admin
node_offerings -->|"loads routes"| node_masterclass
node_offerings -->|"loads routes"| node_podcast
node_offerings -->|"loads routes"| node_microlearning
node_masterclass -->|"routes to"| node_assessment
node_masterclass -->|"routes to"| node_feedback
node_podcast -->|"routes to"| node_assessment
node_podcast -->|"routes to"| node_feedback
node_microlearning -->|"routes to"| node_assessment
node_microlearning -->|"routes to"| node_feedback
node_feedback -->|"submits feedback"| node_api
node_payment -->|"loads cart"| node_api
node_api -.->|"requests data"| node_external_services
node_environment -.->|"configures endpoints"| node_external_services

click node_app "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/app.ts"
click node_routing "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/app.routes.ts"
click node_feature_routes "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/features.routes.ts"
click node_auth "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/auth/services/auth-facade.ts"
click node_library "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/library/library.routes.ts"
click node_offerings "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/offerings.routes.ts"
click node_masterclass "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/masterclass/masterclass.routes.ts"
click node_podcast "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/podcast/podcast.routes.ts"
click node_microlearning "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/micro-learning/micro-learning.routes.ts"
click node_assessment "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/pages/final-assessment-exam/final-assessment-exam.ts"
click node_feedback "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/pages/course-feedback/course-feedback.ts"
click node_webinars "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/webinar/webinar.routes.ts"
click node_ai_labs "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/ai-labs/pages/ai-labs/ai-labs.ts"
click node_tracking "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/tracker/cpe/pages/cpe-tracker/cpe-tracker.ts"
click node_payment "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/payment/services/payment-facade.ts"
click node_partner_pages "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/partners/partner.routes.ts"
click node_admin "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/admin/admin.routes.ts"
click node_api "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/core/services/api-client/api-client.ts"
click node_environment "https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/environments/environment.ts"

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_routing,node_feature_routes,node_api,node_environment toneBlue
class node_library,node_offerings,node_masterclass,node_podcast,node_microlearning,node_assessment,node_feedback,node_webinars,node_ai_labs toneAmber
class node_auth,node_tracking toneMint
class node_payment,node_partner_pages toneRose
class node_admin,node_learner,node_external_services toneIndigo
```

## Components

### Application Runtime

- [Application Shell](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/app.ts): `src/app/app.ts`
- [Route Dispatch](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/app.routes.ts): `src/app/app.routes.ts`
- [Feature Routes](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/features.routes.ts): `src/app/features/features.routes.ts`
- [Platform API](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/core/services/api-client/api-client.ts): `src/app/core/services/api-client/api-client.ts`
- [Environment Config](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/environments/environment.ts): `src/environments/environment.ts`

### Learning Content

- [Content Library](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/library/library.routes.ts): `src/app/features/library/library.routes.ts`
- [Course Formats](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/offerings.routes.ts): `src/app/features/offerings/offerings.routes.ts`
- [Masterclass Learning](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/masterclass/masterclass.routes.ts): `src/app/features/offerings/masterclass/masterclass.routes.ts`
- [Podcast Learning](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/podcast/podcast.routes.ts): `src/app/features/offerings/podcast/podcast.routes.ts`
- [Microlearning](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/micro-learning/micro-learning.routes.ts): `src/app/features/offerings/micro-learning/micro-learning.routes.ts`
- [Assessment](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/pages/final-assessment-exam/final-assessment-exam.ts): `src/app/features/offerings/pages/final-assessment-exam/final-assessment-exam.ts`
- [Course Feedback](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/pages/course-feedback/course-feedback.ts): `src/app/features/offerings/pages/course-feedback/course-feedback.ts`
- [Webinars](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/offerings/webinar/webinar.routes.ts): `src/app/features/offerings/webinar/webinar.routes.ts`
- [AI Labs](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/ai-labs/pages/ai-labs/ai-labs.ts): `src/app/features/ai-labs/pages/ai-labs/ai-labs.ts`

### Learner Services

- [Authentication](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/auth/services/auth-facade.ts): `src/app/features/auth/services/auth-facade.ts`
- [Learning Trackers](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/tracker/cpe/pages/cpe-tracker/cpe-tracker.ts): `src/app/features/tracker/cpe/pages/cpe-tracker/cpe-tracker.ts`

### Commerce and Partners

- [Payment Flow](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/payment/services/payment-facade.ts): `src/app/features/payment/services/payment-facade.ts`
- [Partner Pages](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/features/partners/partner.routes.ts): `src/app/features/partners/partner.routes.ts`

### Administration

- [Admin Console](https://github.com/mileseducation-tech/miles-masterclass/blob/master/src/app/admin/admin.routes.ts): `src/app/admin/admin.routes.ts`

### Other components

- **Learner**
- **External Services**

## Connections

- Learner → Application Shell: uses
- Application Shell → Route Dispatch: loads routes (evidence: `src/app/app.routes.ts`)
- Route Dispatch → Feature Routes: lazy-loads (evidence: `src/app/app.routes.ts`)
- Feature Routes → Authentication: routes to
- Feature Routes → Course Formats: routes to
- Feature Routes → Content Library: routes to
- Feature Routes → Payment Flow: routes to
- Feature Routes → Partner Pages: routes to
- Feature Routes → Admin Console: routes to
- Course Formats → Masterclass Learning: loads routes (evidence: `src/app/features/offerings/offerings.routes.ts`)
- Course Formats → Podcast Learning: loads routes (evidence: `src/app/features/offerings/offerings.routes.ts`)
- Course Formats → Microlearning: loads routes (evidence: `src/app/features/offerings/offerings.routes.ts`)
- Masterclass Learning → Assessment: routes to (evidence: `src/app/features/offerings/masterclass/masterclass.routes.ts`)
- Masterclass Learning → Course Feedback: routes to (evidence: `src/app/features/offerings/masterclass/masterclass.routes.ts`)
- Podcast Learning → Assessment: routes to (evidence: `src/app/features/offerings/podcast/podcast.routes.ts`)
- Podcast Learning → Course Feedback: routes to (evidence: `src/app/features/offerings/podcast/podcast.routes.ts`)
- Microlearning → Assessment: routes to (evidence: `src/app/features/offerings/micro-learning/micro-learning.routes.ts`)
- Microlearning → Course Feedback: routes to (evidence: `src/app/features/offerings/micro-learning/micro-learning.routes.ts`)
- Course Feedback → Platform API: submits feedback
- Payment Flow → Platform API: loads cart
- Platform API → External Services: requests data
- Environment Config → External Services: configures endpoints
