# raviteja449/cfdsa-course architecture

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

- Interactive diagram: https://gitdiagram.com/raviteja449/cfdsa-course
- Repository: https://github.com/raviteja449/cfdsa-course

## Overview

CFDSA is a Kubernetes deployment-and-scaling workshop repository containing several sample web applications and cluster configuration examples. The principal user workflow is browsing Northwind customers: Angular components request list or detail data, the service calls the server API, and the server queries MySQL. BGG provides a separate board-game search and detail experience in both HTML and JSON. The README additionally documents cluster metrics, dashboard, and ingress setup. Some workshop manifests and sample-app internals were not excerpted, so their connections are omitted where evidence is unavailable.

Main entry points: [`bgg/server/lib/bggdb.js`](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/bggdb.js) (BGG database access), [`bgg/server/main.js`](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/main.js) (BGG server), [`northwind/client/src/app/approute.module.ts`](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/approute.module.ts) (Customer routes), [`northwind/client/src/app/northwind.service.ts`](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/northwind.service.ts) (Northwind service)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_northwind["Northwind app"]
  node_angular["Angular bootstrap<br/>[main.ts]"]
  node_appmodule["App module<br/>[app.module.ts]"]
  node_routes["Customer routes<br/>[approute.module.ts]"]
  node_customerlist["Customer list"]
  node_customerdetail["Customer detail"]
  node_nwservice["Northwind service"]
  node_nwserver["Northwind API server<br/>[main.js]"]
  node_nwdb[("Northwind database")]
end

subgraph group_bgg["BGG app"]
  node_bggserver["BGG server<br/>[main.js]"]
  node_bggapi["BGG JSON API<br/>[api.js]"]
  node_bgghtml["BGG HTML views<br/>[html.js]"]
  node_bggdb["BGG database access<br/>[bggdb.js]"]
  node_bggstore[("BGG database<br/>[bgg.sql]")]
end

subgraph group_samples["Other samples"]
  node_fortune["Fortune sample<br/>[main.js]"]
  node_hello["Hello sample<br/>[main.js]"]
  node_weather["Weather sample<br/>[main.js]"]
  node_fallback["Ingress fallback<br/>[main.js]"]
end

subgraph group_cluster["Cluster operations"]
  node_workshops["Workshop manifests"]
  node_metrics["Metrics server"]
  node_dashboard["Kubernetes dashboard"]
  node_ingress["Nginx ingress"]
end

node_visitor(("App visitor"))

node_visitor -->|"opens"| node_angular
node_angular -->|"bootstraps"| node_appmodule
node_appmodule -->|"imports"| node_routes
node_routes -->|"routes to"| node_customerlist
node_routes -->|"routes to"| node_customerdetail
node_customerlist -->|"requests list"| node_nwservice
node_customerdetail -->|"requests detail"| node_nwservice
node_nwservice -.->|"HTTP requests"| node_nwserver
node_nwserver -->|"queries"| node_nwdb
node_bggserver -->|"configures"| node_bggdb
node_bggserver -->|"mounts API"| node_bggapi
node_bggserver -->|"mounts HTML"| node_bgghtml
node_bggapi -->|"queries games"| node_bggdb
node_bgghtml -->|"queries games"| node_bggdb
node_bggdb -.->|"reads"| node_bggstore

click node_angular "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/main.ts"
click node_appmodule "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/app.module.ts"
click node_routes "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/approute.module.ts"
click node_customerlist "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/components/customer-list.component.ts"
click node_customerdetail "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/components/customer-detail.component.ts"
click node_nwservice "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/northwind.service.ts"
click node_nwserver "https://github.com/raviteja449/cfdsa-course/blob/master/northwind/server/main.js"
click node_nwdb "https://github.com/raviteja449/cfdsa-course/tree/master/northwind/database"
click node_bggserver "https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/main.js"
click node_bggapi "https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/api.js"
click node_bgghtml "https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/html.js"
click node_bggdb "https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/bggdb.js"
click node_bggstore "https://github.com/raviteja449/cfdsa-course/blob/master/bgg/database/bgg.sql"
click node_fortune "https://github.com/raviteja449/cfdsa-course/blob/master/fortune/main.js"
click node_hello "https://github.com/raviteja449/cfdsa-course/blob/master/hello/main.js"
click node_weather "https://github.com/raviteja449/cfdsa-course/blob/master/weather/main.js"
click node_fallback "https://github.com/raviteja449/cfdsa-course/blob/master/ingress_default_backend/main.js"
click node_workshops "https://github.com/raviteja449/cfdsa-course/tree/master/workshop2"

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_angular,node_appmodule,node_routes,node_customerlist,node_customerdetail,node_nwservice,node_nwserver,node_nwdb toneBlue
class node_bggserver,node_bggapi,node_bgghtml,node_bggdb,node_bggstore toneAmber
class node_fortune,node_hello,node_weather,node_fallback toneMint
class node_workshops,node_metrics,node_dashboard,node_ingress toneRose
class node_visitor toneIndigo
```

## Components

### Northwind app

- [Angular bootstrap](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/main.ts): `northwind/client/src/main.ts`
- [App module](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/app.module.ts): `northwind/client/src/app/app.module.ts`
- [Customer routes](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/approute.module.ts): `northwind/client/src/app/approute.module.ts`
- [Customer list](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/components/customer-list.component.ts): `northwind/client/src/app/components/customer-list.component.ts`
- [Customer detail](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/components/customer-detail.component.ts): `northwind/client/src/app/components/customer-detail.component.ts`
- [Northwind service](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/client/src/app/northwind.service.ts): `northwind/client/src/app/northwind.service.ts`
- [Northwind API server](https://github.com/raviteja449/cfdsa-course/blob/master/northwind/server/main.js): `northwind/server/main.js`
- [Northwind database](https://github.com/raviteja449/cfdsa-course/tree/master/northwind/database): `northwind/database`

### BGG app

- [BGG server](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/main.js): `bgg/server/main.js`
- [BGG JSON API](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/api.js): `bgg/server/lib/api.js`
- [BGG HTML views](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/html.js): `bgg/server/lib/html.js`
- [BGG database access](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/server/lib/bggdb.js): `bgg/server/lib/bggdb.js`
- [BGG database](https://github.com/raviteja449/cfdsa-course/blob/master/bgg/database/bgg.sql): `bgg/database/bgg.sql`

### Other samples

- [Fortune sample](https://github.com/raviteja449/cfdsa-course/blob/master/fortune/main.js): `fortune/main.js`
- [Hello sample](https://github.com/raviteja449/cfdsa-course/blob/master/hello/main.js): `hello/main.js`
- [Weather sample](https://github.com/raviteja449/cfdsa-course/blob/master/weather/main.js): `weather/main.js`
- [Ingress fallback](https://github.com/raviteja449/cfdsa-course/blob/master/ingress_default_backend/main.js): `ingress_default_backend/main.js`

### Cluster operations

- [Workshop manifests](https://github.com/raviteja449/cfdsa-course/tree/master/workshop2): `workshop2`
- **Metrics server**
- **Kubernetes dashboard**
- **Nginx ingress**

### Other components

- **App visitor**

## Connections

- App visitor → Angular bootstrap: opens (evidence: `northwind/client/src/main.ts`)
- Angular bootstrap → App module: bootstraps (evidence: `northwind/client/src/main.ts`)
- App module → Customer routes: imports (evidence: `northwind/client/src/app/app.module.ts`)
- Customer routes → Customer list: routes to (evidence: `northwind/client/src/app/approute.module.ts`)
- Customer routes → Customer detail: routes to (evidence: `northwind/client/src/app/approute.module.ts`)
- Customer list → Northwind service: requests list (evidence: `northwind/client/src/app/components/customer-list.component.ts`)
- Customer detail → Northwind service: requests detail (evidence: `northwind/client/src/app/components/customer-detail.component.ts`)
- Northwind service → Northwind API server: HTTP requests
- Northwind API server → Northwind database: queries (evidence: `northwind/server/main.js`)
- BGG server → BGG database access: configures (evidence: `bgg/server/main.js`)
- BGG server → BGG JSON API: mounts API (evidence: `bgg/server/main.js`)
- BGG server → BGG HTML views: mounts HTML (evidence: `bgg/server/main.js`)
- BGG JSON API → BGG database access: queries games (evidence: `bgg/server/lib/api.js`)
- BGG HTML views → BGG database access: queries games (evidence: `bgg/server/lib/html.js`)
- BGG database access → BGG database: reads
