# deepansenthilkumar005/portfolio-mern architecture

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

- Interactive diagram: https://gitdiagram.com/deepansenthilkumar005/portfolio-mern
- Repository: https://github.com/deepansenthilkumar005/portfolio-mern

## Overview

This is a personal portfolio site with an Express/MongoDB contact-message service. The principal workflow is a visitor using the site’s contact form, whose submission is handled by the API and saved as feedback. The backend also documents health checks, input validation, CORS restrictions, and rate limiting. Frontend internals are not shown, so the site is represented as one component; the Google Apps Script is omitted because its role is not established by the available evidence.

Main entry points: [`backend/server.js`](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/server.js) (Feedback API), [`frontend`](https://github.com/deepansenthilkumar005/portfolio-mern/tree/main/frontend) (Portfolio and contact form), [`backend/config/DbConnect.js`](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/config/DbConnect.js) (MongoDB connection), [`backend/models/feedback.js`](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/models/feedback.js) (Feedback schema)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_portfolio["Portfolio and contact form"]
end

subgraph group_api["Contact API"]
  node_server["Feedback API<br/>[server.js]"]
end

subgraph group_persistence["Message persistence"]
  node_dbconnect["MongoDB connection<br/>[DbConnect.js]"]
  node_feedback["Feedback schema<br/>[feedback.js]"]
end

node_visitor(("Visitor"))
node_mongodb[("MongoDB")]

node_visitor -->|"uses"| node_portfolio
node_portfolio -->|"submits contact form"| node_server
node_server -->|"connects through"| node_dbconnect
node_server -->|"saves feedback"| node_feedback
node_dbconnect -->|"connects to"| node_mongodb
node_feedback -->|"defines stored records"| node_mongodb

click node_portfolio "https://github.com/deepansenthilkumar005/portfolio-mern/tree/main/frontend"
click node_server "https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/server.js"
click node_dbconnect "https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/config/DbConnect.js"
click node_feedback "https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/models/feedback.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_portfolio toneBlue
class node_server,node_mongodb toneAmber
class node_dbconnect,node_feedback toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Portfolio and contact form](https://github.com/deepansenthilkumar005/portfolio-mern/tree/main/frontend): `frontend`

### Contact API

- [Feedback API](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/server.js): `backend/server.js`

### Message persistence

- [MongoDB connection](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/config/DbConnect.js): `backend/config/DbConnect.js`
- [Feedback schema](https://github.com/deepansenthilkumar005/portfolio-mern/blob/main/backend/models/feedback.js): `backend/models/feedback.js`

### Other components

- **Visitor**
- **MongoDB**

## Connections

- Visitor → Portfolio and contact form: uses (evidence: `README.md`)
- Portfolio and contact form → Feedback API: submits contact form (evidence: `README.md`)
- Feedback API → MongoDB connection: connects through (evidence: `backend/server.js`)
- Feedback API → Feedback schema: saves feedback (evidence: `backend/server.js`)
- MongoDB connection → MongoDB: connects to (evidence: `backend/config/DbConnect.js`)
- Feedback schema → MongoDB: defines stored records (evidence: `backend/models/feedback.js`)
