# kbhavaniprasad/port-01 architecture

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

- Interactive diagram: https://gitdiagram.com/kbhavaniprasad/port-01
- Repository: https://github.com/kbhavaniprasad/port-01

## Overview

This repository is a personal portfolio website with a React frontend and an Express backend for contact messages and event logs. Visitors enter through the portfolio page to view profile, projects, skills, and internship details; the frontend also checks backend health. The backend persists messages and logs in MongoDB and can notify the portfolio owner by email. The available README is empty, and source excerpts are partial, so some frontend-to-backend interactions beyond the health check are not asserted.

Main entry points: [`server/index.js`](https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js) (HTTP API), [`client_new/src/components/Portfolio.jsx`](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/Portfolio.jsx) (Portfolio page), [`client_new/src/App.js`](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/App.js) (App router), [`client_new/src/components/InternshipShowcase.jsx`](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/InternshipShowcase.jsx) (Internship showcase)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Portfolio frontend"]
  node_app["App router<br/>[App.js]"]
  node_portfolio["Portfolio page<br/>[Portfolio.jsx]"]
  node_internship["Internship showcase"]
  node_vitals["Web vitals<br/>[reportWebVitals.js]"]
end

subgraph group_backend["Portfolio backend"]
  node_api["HTTP API<br/>[index.js]"]
  node_messages["Contact messages<br/>[index.js]"]
  node_eventlogs["Event logs<br/>[index.js]"]
end

subgraph group_integrations["External services"]
  node_mongo[("MongoDB")]
  node_mail["Email service"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_app -->|"routes to"| node_portfolio
node_portfolio -->|"renders"| node_internship
node_portfolio -->|"checks health"| node_api
node_api -->|"handles submissions"| node_messages
node_api -->|"handles log requests"| node_eventlogs
node_api -->|"reads and writes"| node_mongo
node_api -->|"sends notifications"| node_mail

click node_app "https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/App.js"
click node_portfolio "https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/Portfolio.jsx"
click node_internship "https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/InternshipShowcase.jsx"
click node_vitals "https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/reportWebVitals.js"
click node_api "https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js"
click node_messages "https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js"
click node_eventlogs "https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js"

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_portfolio,node_internship,node_vitals toneBlue
class node_api,node_messages,node_eventlogs toneAmber
class node_mongo,node_mail toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio frontend

- [App router](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/App.js): `client_new/src/App.js`
- [Portfolio page](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/Portfolio.jsx): `client_new/src/components/Portfolio.jsx`
- [Internship showcase](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/components/InternshipShowcase.jsx): `client_new/src/components/InternshipShowcase.jsx`
- [Web vitals](https://github.com/kbhavaniprasad/port-01/blob/main/client_new/src/reportWebVitals.js): `client_new/src/reportWebVitals.js`

### Portfolio backend

- [HTTP API](https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js): `server/index.js`
- [Contact messages](https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js): `server/index.js`
- [Event logs](https://github.com/kbhavaniprasad/port-01/blob/main/server/index.js): `server/index.js`

### External services

- **MongoDB**
- **Email service**

### Other components

- **Visitor**

## Connections

- Visitor → App router: opens
- App router → Portfolio page: routes to (evidence: `client_new/src/App.js`)
- Portfolio page → Internship showcase: renders (evidence: `client_new/src/components/Portfolio.jsx`)
- Portfolio page → HTTP API: checks health (evidence: `client_new/src/components/Portfolio.jsx`)
- HTTP API → Contact messages: handles submissions (evidence: `server/index.js`)
- HTTP API → Event logs: handles log requests (evidence: `server/index.js`)
- HTTP API → MongoDB: reads and writes (evidence: `server/index.js`)
- HTTP API → Email service: sends notifications (evidence: `server/index.js`)
