# dhanush-002b/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/dhanush-002b/portfolio
- Repository: https://github.com/dhanush-002b/portfolio

## Overview

This repository combines a React portfolio with a separately served hospital-queue demo under `public/`. The portfolio presents profile, skills, projects, experience, education, and contact information; its contact form opens an email draft, and resume links offer a download. The queue server exposes patient operations backed by a JSON file and serves its frontend. The queue frontend implementation was not sampled, so its internal behavior and API calls are not inferred here.

Main entry points: [`src/App.jsx`](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx) (Portfolio sections), [`public/hospital-queue/backend/server.js`](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/server.js) (Queue API server), [`public/hospital-queue/backend/db.js`](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/db.js) (Patient storage), [`public/hospital-queue/frontend/index.html`](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/frontend/index.html) (Queue frontend)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio site"]
  node_portfolio_app["Portfolio sections<br/>[App.jsx]"]
  node_profile["Profile and skills<br/>[App.jsx]"]
  node_projects["Project showcase<br/>[App.jsx]"]
  node_experience["Experience and education<br/>[App.jsx]"]
  node_contact["Contact form<br/>[App.jsx]"]
  node_resume["Resume page<br/>[resume.html]"]
  node_social["Social profiles<br/>[App.jsx]"]
end

subgraph group_queue["Hospital queue"]
  node_queue_frontend["Queue frontend<br/>[index.html]"]
  node_queue_server["Queue API server<br/>[server.js]"]
  node_patient_store[("Patient storage<br/>[db.js]")]
  node_patients_file["Patient records<br/>[patients.json]"]
end

node_visitor(("Portfolio visitor"))
node_queue_user(("Queue user"))

node_visitor -->|"views"| node_portfolio_app
node_portfolio_app -->|"presents"| node_profile
node_portfolio_app -->|"showcases"| node_projects
node_portfolio_app -->|"presents"| node_experience
node_portfolio_app -->|"offers"| node_contact
node_portfolio_app -->|"links to"| node_resume
node_portfolio_app -->|"links to"| node_social
node_contact -->|"opens email draft"| node_visitor
node_queue_user -.->|"uses"| node_queue_frontend
node_queue_server -->|"serves"| node_queue_frontend
node_queue_server -->|"calls"| node_patient_store
node_patient_store -->|"reads and writes"| node_patients_file

click node_portfolio_app "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_profile "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_projects "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_experience "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_contact "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_resume "https://github.com/dhanush-002b/portfolio/blob/main/public/resume.html"
click node_social "https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx"
click node_queue_frontend "https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/frontend/index.html"
click node_queue_server "https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/server.js"
click node_patient_store "https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/db.js"
click node_patients_file "https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/data/patients.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_portfolio_app,node_profile,node_projects,node_experience,node_contact,node_resume,node_social toneBlue
class node_queue_frontend,node_queue_server,node_patient_store,node_patients_file toneAmber
class node_visitor toneIndigo
class node_queue_user toneRose
```

## Components

### Portfolio site

- [Portfolio sections](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Profile and skills](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Project showcase](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Experience and education](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Contact form](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`
- [Resume page](https://github.com/dhanush-002b/portfolio/blob/main/public/resume.html): `public/resume.html`
- [Social profiles](https://github.com/dhanush-002b/portfolio/blob/main/src/App.jsx): `src/App.jsx`

### Hospital queue

- [Queue frontend](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/frontend/index.html): `public/hospital-queue/frontend/index.html`
- [Queue API server](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/server.js): `public/hospital-queue/backend/server.js`
- [Patient storage](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/db.js): `public/hospital-queue/backend/db.js`
- [Patient records](https://github.com/dhanush-002b/portfolio/blob/main/public/hospital-queue/backend/data/patients.json): `public/hospital-queue/backend/data/patients.json`

### Other components

- **Portfolio visitor**
- **Queue user**

## Connections

- Portfolio visitor → Portfolio sections: views (evidence: `README.md`)
- Portfolio sections → Profile and skills: presents (evidence: `README.md`)
- Portfolio sections → Project showcase: showcases (evidence: `README.md`)
- Portfolio sections → Experience and education: presents (evidence: `README.md`)
- Portfolio sections → Contact form: offers (evidence: `README.md`)
- Portfolio sections → Resume page: links to (evidence: `src/App.jsx`)
- Portfolio sections → Social profiles: links to (evidence: `src/App.jsx`)
- Contact form → Portfolio visitor: opens email draft (evidence: `src/App.jsx`)
- Queue user → Queue frontend: uses
- Queue API server → Queue frontend: serves (evidence: `public/hospital-queue/backend/server.js`)
- Queue API server → Patient storage: calls (evidence: `public/hospital-queue/backend/server.js`)
- Patient storage → Patient records: reads and writes (evidence: `public/hospital-queue/backend/db.js`)
