# srinadh0219/chatmeet-social-medial-platform architecture

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

- Interactive diagram: https://gitdiagram.com/srinadh0219/chatmeet-social-medial-platform
- Repository: https://github.com/srinadh0219/chatmeet-social-medial-platform

## Overview

This is a full-stack social platform. Users register and verify accounts, then access profiles, a follow-based post feed, communities, and private or group messaging; feedback is another user-facing capability. The frontend routes these experiences and makes API calls, while the Express server mounts domain routes and also handles Socket.io events. Sampled code confirms OTP persistence and message retrieval through the database. Several feature implementations and route-to-controller bindings are unsampled, so those links are omitted rather than inferred.

Main entry points: [`backend/src/server.ts`](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/server.ts) (HTTP and sockets), [`FrontEnd/src/App.tsx`](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/App.tsx) (App routing), [`backend/src/config/db.ts`](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/config/db.ts) (PostgreSQL access), [`FrontEnd/src/component/Join.tsx`](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/Join.tsx) (Chat experience)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Frontend experiences"]
  node_app["App routing<br/>[App.tsx]"]
  node_authui["Authentication UI<br/>[Register.tsx]"]
  node_otpui["OTP verification"]
  node_authapi["Auth API client<br/>[api-auth.ts]"]
  node_socialui["Feed and profiles<br/>[HomePage.tsx]"]
  node_profileedit["Profile editing<br/>[EditProfile.tsx]"]
  node_communitiesui["Community browsing<br/>[api-community.ts]"]
  node_chatui["Chat experience<br/>[Join.tsx]"]
  node_chatlogic["Chat helpers<br/>[chatLogic.ts]"]
  node_postsapi["Posts API client<br/>[api-post.ts]"]
end

subgraph group_backend["Backend services"]
  node_server["HTTP and sockets<br/>[server.ts]"]
  node_authroutes["Auth routes<br/>[auth.ts]"]
  node_postroutes["Post routes<br/>[posts.ts]"]
  node_chatroutes["Chat routes<br/>[chat.ts]"]
  node_communityroutes["Community routes<br/>[community.ts]"]
  node_userroutes["User routes<br/>[users.ts]"]
  node_message["Message retrieval<br/>[allMessage.ts]"]
  node_register["Registration"]
  node_otpcontroller["OTP and recovery"]
  node_otphelper["OTP and email helper<br/>[otpHelper.ts]"]
end

subgraph group_data["Data and persistence"]
  node_db[("PostgreSQL access<br/>[db.ts]")]
  node_schema["Domain schemas"]
end

subgraph group_integrations["External services"]
  node_email["Email service"]
  node_cloudinary["Cloudinary media"]
end

node_user(("User"))
node_socketclients(("Connected chat users"))

node_user -->|"uses"| node_app
node_app -->|"routes to"| node_authui
node_app -->|"routes to"| node_otpui
node_app -->|"routes to"| node_socialui
node_app -->|"routes to"| node_profileedit
node_app -->|"routes to"| node_chatui
node_otpui -->|"calls"| node_authapi
node_chatui -->|"calls"| node_postsapi
node_chatui -->|"uses"| node_chatlogic
node_server -->|"mounts"| node_authroutes
node_server -->|"mounts"| node_postroutes
node_server -->|"mounts"| node_chatroutes
node_server -->|"mounts"| node_communityroutes
node_server -->|"mounts"| node_userroutes
node_server -->|"dispatches events"| node_socketclients
node_register -->|"queries"| node_db
node_register -->|"generates and emails"| node_otphelper
node_otpcontroller -->|"queries"| node_db
node_otpcontroller -->|"generates and emails"| node_otphelper
node_otphelper -.->|"sends OTP"| node_email
node_message -->|"queries"| node_db
node_db -.->|"persists domain data"| node_schema
node_user -.->|"uploads post media"| node_cloudinary
node_user -.->|"browses communities"| node_communitiesui

click node_app "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/App.tsx"
click node_authui "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/Register.tsx"
click node_otpui "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/pages/OTPVerification.tsx"
click node_authapi "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-auth.ts"
click node_socialui "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/HomePage.tsx"
click node_profileedit "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/EditProfile.tsx"
click node_communitiesui "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-community.ts"
click node_chatui "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/Join.tsx"
click node_chatlogic "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/config/chatLogic.ts"
click node_postsapi "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-post.ts"
click node_server "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/server.ts"
click node_authroutes "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/auth.ts"
click node_postroutes "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/posts.ts"
click node_chatroutes "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/chat.ts"
click node_communityroutes "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/community.ts"
click node_userroutes "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/users.ts"
click node_message "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/chat/allMessage.ts"
click node_register "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/auth/RegisterControllers.ts"
click node_otpcontroller "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/auth/AuthOtpController.ts"
click node_db "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/config/db.ts"
click node_otphelper "https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/utils/otpHelper.ts"
click node_schema "https://github.com/srinadh0219/chatmeet-social-medial-platform/tree/main/backend/src/Schema"

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_authui,node_otpui,node_authapi,node_socialui,node_profileedit,node_communitiesui,node_chatui,node_chatlogic,node_postsapi,node_user,node_socketclients toneBlue
class node_server,node_authroutes,node_postroutes,node_chatroutes,node_communityroutes,node_userroutes,node_message,node_register,node_otpcontroller,node_otphelper toneAmber
class node_db,node_schema toneMint
class node_email,node_cloudinary toneRose
```

## Components

### Frontend experiences

- [App routing](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/App.tsx): `FrontEnd/src/App.tsx`
- [Authentication UI](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/Register.tsx): `FrontEnd/src/component/Register.tsx`
- [OTP verification](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/pages/OTPVerification.tsx): `FrontEnd/src/pages/OTPVerification.tsx`
- [Auth API client](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-auth.ts): `FrontEnd/src/api/api-auth.ts`
- [Feed and profiles](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/HomePage.tsx): `FrontEnd/src/component/HomePage.tsx`
- [Profile editing](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/EditProfile.tsx): `FrontEnd/src/component/EditProfile.tsx`
- [Community browsing](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-community.ts): `FrontEnd/src/api/api-community.ts`
- [Chat experience](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/component/Join.tsx): `FrontEnd/src/component/Join.tsx`
- [Chat helpers](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/config/chatLogic.ts): `FrontEnd/src/config/chatLogic.ts`
- [Posts API client](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/FrontEnd/src/api/api-post.ts): `FrontEnd/src/api/api-post.ts`

### Backend services

- [HTTP and sockets](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/server.ts): `backend/src/server.ts`
- [Auth routes](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/auth.ts): `backend/src/Routes/api/auth.ts`
- [Post routes](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/posts.ts): `backend/src/Routes/api/posts.ts`
- [Chat routes](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/chat.ts): `backend/src/Routes/api/chat.ts`
- [Community routes](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/community.ts): `backend/src/Routes/api/community.ts`
- [User routes](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Routes/api/users.ts): `backend/src/Routes/api/users.ts`
- [Message retrieval](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/chat/allMessage.ts): `backend/src/Controllers/chat/allMessage.ts`
- [Registration](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/auth/RegisterControllers.ts): `backend/src/Controllers/auth/RegisterControllers.ts`
- [OTP and recovery](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/Controllers/auth/AuthOtpController.ts): `backend/src/Controllers/auth/AuthOtpController.ts`
- [OTP and email helper](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/utils/otpHelper.ts): `backend/src/utils/otpHelper.ts`

### Data and persistence

- [PostgreSQL access](https://github.com/srinadh0219/chatmeet-social-medial-platform/blob/main/backend/src/config/db.ts): `backend/src/config/db.ts`
- [Domain schemas](https://github.com/srinadh0219/chatmeet-social-medial-platform/tree/main/backend/src/Schema): `backend/src/Schema`

### External services

- **Email service**
- **Cloudinary media**

### Other components

- **User**
- **Connected chat users**

## Connections

- User → App routing: uses (evidence: `FrontEnd/src/App.tsx`)
- App routing → Authentication UI: routes to (evidence: `FrontEnd/src/App.tsx`)
- App routing → OTP verification: routes to (evidence: `FrontEnd/src/App.tsx`)
- App routing → Feed and profiles: routes to (evidence: `FrontEnd/src/App.tsx`)
- App routing → Profile editing: routes to (evidence: `FrontEnd/src/App.tsx`)
- App routing → Chat experience: routes to (evidence: `FrontEnd/src/App.tsx`)
- OTP verification → Auth API client: calls (evidence: `FrontEnd/src/pages/OTPVerification.tsx`)
- Chat experience → Posts API client: calls (evidence: `FrontEnd/src/component/Join.tsx`)
- Chat experience → Chat helpers: uses (evidence: `FrontEnd/src/component/Join.tsx`)
- HTTP and sockets → Auth routes: mounts (evidence: `backend/src/server.ts`)
- HTTP and sockets → Post routes: mounts (evidence: `backend/src/server.ts`)
- HTTP and sockets → Chat routes: mounts (evidence: `backend/src/server.ts`)
- HTTP and sockets → Community routes: mounts (evidence: `backend/src/server.ts`)
- HTTP and sockets → User routes: mounts (evidence: `backend/src/server.ts`)
- HTTP and sockets → Connected chat users: dispatches events (evidence: `backend/src/server.ts`)
- Registration → PostgreSQL access: queries (evidence: `backend/src/Controllers/auth/RegisterControllers.ts`)
- Registration → OTP and email helper: generates and emails (evidence: `backend/src/Controllers/auth/RegisterControllers.ts`)
- OTP and recovery → PostgreSQL access: queries (evidence: `backend/src/Controllers/auth/AuthOtpController.ts`)
- OTP and recovery → OTP and email helper: generates and emails (evidence: `backend/src/Controllers/auth/AuthOtpController.ts`)
- OTP and email helper → Email service: sends OTP
- Message retrieval → PostgreSQL access: queries (evidence: `backend/src/Controllers/chat/allMessage.ts`)
- PostgreSQL access → Domain schemas: persists domain data
- User → Cloudinary media: uploads post media (evidence: `README.md`)
- User → Community browsing: browses communities (evidence: `README.md`)
