# londheshubham153/github-actions-kubernetes-masterclass architecture

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

- Interactive diagram: https://gitdiagram.com/londheshubham153/github-actions-kubernetes-masterclass
- Repository: https://github.com/londheshubham153/github-actions-kubernetes-masterclass

## Overview

SkillPulse tracks skills, learning goals, logged sessions, and aggregate progress: users manage skills and record hours in the browser, then review updated skill totals and dashboard statistics. Its Go API routes these operations to MySQL. The repository also demonstrates GitHub Actions image publishing and automated deployment to EC2. Handler and browser relationships are shown where excerpts support them; CI/CD relationships rely on the README, since workflow source was not sampled.

Main entry points: [`backend/main.go`](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/main.go) (API router), [`mysql/init.sql`](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/mysql/init.sql) (MySQL schema), [`backend/handlers/skills.go`](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/skills.go) (Skill management), [`backend/handlers/logs.go`](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/logs.go) (Session logging)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_browser["Skill tracker UI<br/>[app.js]"]
  node_page["Web page<br/>[index.html]"]
end

subgraph group_api["API service"]
  node_api_server["API router<br/>[main.go]"]
  node_skills["Skill management<br/>[skills.go]"]
  node_logs["Session logging<br/>[logs.go]"]
  node_dashboard["Dashboard and health<br/>[dashboard.go]"]
  node_models["Domain models<br/>[skill.go]"]
end

subgraph group_data["Persistence"]
  node_db_connector["Database connection<br/>[db.go]"]
  node_mysql[("MySQL schema<br/>[init.sql]")]
end

subgraph group_delivery["CI/CD delivery"]
  node_ci["CI image publishing<br/>[ci.yml]"]
  node_cd["CD deployment<br/>[cd.yml]"]
end

node_learner(("Learner"))
node_dockerhub[("Docker Hub")]
node_ec2["EC2 deployment host"]
node_running_app["Running application"]

node_learner -->|"uses"| node_page
node_page -->|"loads"| node_browser
node_browser -->|"requests API"| node_api_server
node_api_server -->|"connects"| node_db_connector
node_api_server -->|"routes skill requests"| node_skills
node_api_server -->|"routes log requests"| node_logs
node_api_server -->|"routes dashboard and health"| node_dashboard
node_skills -->|"reads and writes"| node_mysql
node_logs -->|"checks and records"| node_mysql
node_dashboard -->|"queries totals"| node_mysql
node_skills -->|"uses"| node_models
node_logs -->|"uses"| node_models
node_dashboard -->|"uses"| node_models
node_db_connector -->|"connects"| node_mysql
node_learner -->|"pushes change"| node_ci
node_ci -->|"publishes images"| node_dockerhub
node_ci -->|"triggers on success"| node_cd
node_cd -->|"pulls images"| node_dockerhub
node_cd -->|"deploys over SSH"| node_ec2
node_ec2 -->|"runs"| node_running_app

click node_browser "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/frontend/js/app.js"
click node_page "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/frontend/index.html"
click node_api_server "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/main.go"
click node_skills "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/skills.go"
click node_logs "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/logs.go"
click node_dashboard "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/dashboard.go"
click node_models "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/models/skill.go"
click node_db_connector "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/database/db.go"
click node_mysql "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/mysql/init.sql"
click node_ci "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/.github/workflows/ci.yml"
click node_cd "https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/.github/workflows/cd.yml"

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_browser,node_page toneBlue
class node_api_server,node_skills,node_logs,node_dashboard,node_models,node_dockerhub toneAmber
class node_db_connector,node_mysql toneMint
class node_ci,node_cd toneRose
class node_learner,node_ec2,node_running_app toneIndigo
```

## Components

### Web application

- [Skill tracker UI](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/frontend/js/app.js): `frontend/js/app.js`
- [Web page](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/frontend/index.html): `frontend/index.html`

### API service

- [API router](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/main.go): `backend/main.go`
- [Skill management](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/skills.go): `backend/handlers/skills.go`
- [Session logging](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/logs.go): `backend/handlers/logs.go`
- [Dashboard and health](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/handlers/dashboard.go): `backend/handlers/dashboard.go`
- [Domain models](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/models/skill.go): `backend/models/skill.go`

### Persistence

- [Database connection](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/backend/database/db.go): `backend/database/db.go`
- [MySQL schema](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/mysql/init.sql): `mysql/init.sql`

### CI/CD delivery

- [CI image publishing](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/.github/workflows/ci.yml): `.github/workflows/ci.yml`
- [CD deployment](https://github.com/londheshubham153/github-actions-kubernetes-masterclass/blob/main/.github/workflows/cd.yml): `.github/workflows/cd.yml`

### Other components

- **Learner**
- **Docker Hub**
- **EC2 deployment host**
- **Running application**

## Connections

- Learner → Web page: uses (evidence: `README.md`)
- Web page → Skill tracker UI: loads
- Skill tracker UI → API router: requests API (evidence: `frontend/js/app.js`)
- API router → Database connection: connects (evidence: `backend/main.go`)
- API router → Skill management: routes skill requests (evidence: `backend/main.go`)
- API router → Session logging: routes log requests (evidence: `backend/main.go`)
- API router → Dashboard and health: routes dashboard and health (evidence: `backend/main.go`)
- Skill management → MySQL schema: reads and writes (evidence: `backend/handlers/skills.go`)
- Session logging → MySQL schema: checks and records (evidence: `backend/handlers/logs.go`)
- Dashboard and health → MySQL schema: queries totals (evidence: `backend/handlers/dashboard.go`)
- Skill management → Domain models: uses (evidence: `backend/handlers/skills.go`)
- Session logging → Domain models: uses (evidence: `backend/handlers/logs.go`)
- Dashboard and health → Domain models: uses (evidence: `backend/handlers/dashboard.go`)
- Database connection → MySQL schema: connects (evidence: `backend/database/db.go`)
- Learner → CI image publishing: pushes change (evidence: `README.md`)
- CI image publishing → Docker Hub: publishes images (evidence: `README.md`)
- CI image publishing → CD deployment: triggers on success (evidence: `README.md`)
- CD deployment → Docker Hub: pulls images (evidence: `README.md`)
- CD deployment → EC2 deployment host: deploys over SSH (evidence: `README.md`)
- EC2 deployment host → Running application: runs (evidence: `README.md`)
