# mailmeabhishek/github-action-demo-three-tier-app architecture

> Architecture diagram of the GitHub repository mailmeabhishek/github-action-demo-three-tier-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mailmeabhishek/github-action-demo-three-tier-app
- Repository: https://github.com/mailmeabhishek/github-action-demo-three-tier-app

## Overview

SkillPulse is a learning-skill tracker: users create skills, record learning sessions, and view aggregate progress. The browser client calls a Go API; handlers validate requests, query or update MySQL, and return JSON for display. The graph separates the browser, API routing, domain handlers and persistence/model layer. README content was empty, so capabilities and relationships are based on the sampled source; frontend-to-API and route registrations are visible, but deployment wiring is not mapped.

Main entry points: [`backend/main.go`](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/main.go) (HTTP API), [`backend/database/db.go`](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/database/db.go) (Database connection), [`backend/handlers/skills.go`](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/skills.go) (Skill management), [`backend/handlers/logs.go`](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/logs.go) (Session logging)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser client"]
  node_webapp["Skill dashboard<br/>[app.js]"]
end

subgraph group_api["API routing"]
  node_router["HTTP API<br/>[main.go]"]
end

subgraph group_domain["Learning features"]
  node_skills["Skill management<br/>[skills.go]"]
  node_logs["Session logging<br/>[logs.go]"]
  node_dashboard["Progress summary<br/>[dashboard.go]"]
end

subgraph group_persistence["Data layer"]
  node_models["Request and response models<br/>[skill.go]"]
  node_dbconn["Database connection<br/>[db.go]"]
  node_mysql[("MySQL")]
end

node_user(("Learner"))

node_user -->|"uses"| node_webapp
node_webapp -->|"calls API"| node_router
node_router -->|"routes requests"| node_skills
node_router -->|"routes requests"| node_logs
node_router -->|"routes requests"| node_dashboard
node_router -->|"connects"| node_dbconn
node_skills -->|"queries and updates"| node_dbconn
node_logs -->|"writes sessions"| node_dbconn
node_dashboard -->|"aggregates data"| node_dbconn
node_skills -->|"uses types"| node_models
node_logs -->|"uses types"| node_models
node_dashboard -->|"uses types"| node_models
node_dbconn -->|"opens connection"| node_mysql

click node_webapp "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/frontend/js/app.js"
click node_router "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/main.go"
click node_skills "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/skills.go"
click node_logs "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/logs.go"
click node_dashboard "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/dashboard.go"
click node_models "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/models/skill.go"
click node_dbconn "https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/database/db.go"

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_webapp toneBlue
class node_router toneAmber
class node_skills,node_logs,node_dashboard toneMint
class node_models,node_dbconn,node_mysql toneRose
class node_user toneIndigo
```

## Components

### Browser client

- [Skill dashboard](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/frontend/js/app.js): `frontend/js/app.js`

### API routing

- [HTTP API](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/main.go): `backend/main.go`

### Learning features

- [Skill management](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/skills.go): `backend/handlers/skills.go`
- [Session logging](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/logs.go): `backend/handlers/logs.go`
- [Progress summary](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/handlers/dashboard.go): `backend/handlers/dashboard.go`

### Data layer

- [Request and response models](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/models/skill.go): `backend/models/skill.go`
- [Database connection](https://github.com/mailmeabhishek/github-action-demo-three-tier-app/blob/main/backend/database/db.go): `backend/database/db.go`
- **MySQL**

### Other components

- **Learner**

## Connections

- Learner → Skill dashboard: uses (evidence: `frontend/js/app.js`)
- Skill dashboard → HTTP API: calls API (evidence: `frontend/js/app.js`)
- HTTP API → Skill management: routes requests (evidence: `backend/main.go`)
- HTTP API → Session logging: routes requests (evidence: `backend/main.go`)
- HTTP API → Progress summary: routes requests (evidence: `backend/main.go`)
- HTTP API → Database connection: connects (evidence: `backend/main.go`)
- Skill management → Database connection: queries and updates (evidence: `backend/handlers/skills.go`)
- Session logging → Database connection: writes sessions (evidence: `backend/handlers/logs.go`)
- Progress summary → Database connection: aggregates data (evidence: `backend/handlers/dashboard.go`)
- Skill management → Request and response models: uses types (evidence: `backend/handlers/skills.go`)
- Session logging → Request and response models: uses types (evidence: `backend/handlers/logs.go`)
- Progress summary → Request and response models: uses types (evidence: `backend/handlers/dashboard.go`)
- Database connection → MySQL: opens connection (evidence: `backend/database/db.go`)
