# rahulshamra/zoom architecture

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

- Interactive diagram: https://gitdiagram.com/rahulshamra/zoom
- Repository: https://github.com/rahulshamra/zoom

## Overview

Zoomly is a meeting-room app with account login, reusable named meetings, real-time chat, saved chat history, and a video interface. The main workflow is landing/authentication, dashboard meeting selection, then a room; the backend verifies users, manages meeting membership, and persists chat. The graph follows shown HTTP and server-side calls. The chat component was not sampled, and the README is empty, so client-to-server real-time wiring is left unverified rather than inferred.

Main entry points: [`Frontend/chatapp/src/App.jsx`](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/src/App.jsx) (App flow), [`Backend/src/controllers/socketManager.js`](https://github.com/rahulshamra/zoom/blob/main/Backend/src/controllers/socketManager.js) (Room events), [`Backend/src/routes/user.js`](https://github.com/rahulshamra/zoom/blob/main/Backend/src/routes/user.js) (User routes), [`Backend/src/app.js`](https://github.com/rahulshamra/zoom/blob/main/Backend/src/app.js) (HTTP app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Web app"]
  node_app["App flow<br/>[App.jsx]"]
  node_landing["Landing page<br/>[LandingPage.jsx]"]
  node_auth_ui["Account form<br/>[AuthPanel.jsx]"]
  node_dashboard["Meeting dashboard<br/>[Dashboard.jsx]"]
  node_chat_ui["Room chat<br/>[chat.jsx]"]
  node_video_ui["Video interface<br/>[video.jsx]"]
  node_socket_client["Socket client<br/>[socket.js]"]
end

subgraph group_backend["Backend services"]
  node_http_server["HTTP app<br/>[app.js]"]
  node_user_routes["User routes<br/>[user.js]"]
  node_user_controller["Account and meetings<br/>[userControlller.js]"]
  node_auth_middleware["Session verification<br/>[auth.js]"]
  node_socket_manager["Room events<br/>[socketManager.js]"]
end

subgraph group_data["Persistence"]
  node_user_model["User records<br/>[userSchema.js]"]
  node_meeting_model["Meeting records<br/>[mettingSchema.js]"]
end

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

node_visitor -.->|"opens app"| node_app
node_app -->|"renders"| node_landing
node_app -->|"renders"| node_auth_ui
node_app -->|"renders"| node_dashboard
node_app -->|"renders"| node_chat_ui
node_app -->|"checks session"| node_http_server
node_auth_ui -->|"posts credentials"| node_user_routes
node_dashboard -->|"requests meetings"| node_user_routes
node_video_ui -->|"uses"| node_socket_client
node_chat_ui -.->|"uses"| node_socket_client
node_socket_client -.->|"connects to"| node_socket_manager
node_http_server -->|"mounts routes"| node_user_routes
node_http_server -->|"initializes"| node_socket_manager
node_user_routes -->|"dispatches"| node_user_controller
node_user_routes -->|"requires session"| node_auth_middleware
node_user_controller -->|"reads and updates"| node_user_model
node_user_controller -->|"reads and updates"| node_meeting_model
node_socket_manager -->|"extracts cookie"| node_auth_middleware
node_socket_manager -->|"checks membership"| node_user_model
node_socket_manager -->|"checks and saves chat"| node_meeting_model
node_http_server -->|"connects"| node_mongodb
node_user_model -.->|"stores users"| node_mongodb
node_meeting_model -.->|"stores meetings"| node_mongodb

click node_app "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/src/App.jsx"
click node_landing "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/LandingPage.jsx"
click node_auth_ui "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/AuthPanel.jsx"
click node_dashboard "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/Dashboard.jsx"
click node_chat_ui "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/chat.jsx"
click node_video_ui "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/video.jsx"
click node_socket_client "https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/src/socket.js"
click node_http_server "https://github.com/rahulshamra/zoom/blob/main/Backend/src/app.js"
click node_user_routes "https://github.com/rahulshamra/zoom/blob/main/Backend/src/routes/user.js"
click node_user_controller "https://github.com/rahulshamra/zoom/blob/main/Backend/src/controllers/userControlller.js"
click node_auth_middleware "https://github.com/rahulshamra/zoom/blob/main/Backend/src/middleware/auth.js"
click node_socket_manager "https://github.com/rahulshamra/zoom/blob/main/Backend/src/controllers/socketManager.js"
click node_user_model "https://github.com/rahulshamra/zoom/blob/main/Backend/src/models/userSchema.js"
click node_meeting_model "https://github.com/rahulshamra/zoom/blob/main/Backend/src/models/mettingSchema.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_landing,node_auth_ui,node_dashboard,node_chat_ui,node_video_ui,node_socket_client toneBlue
class node_http_server,node_user_routes,node_user_controller,node_auth_middleware,node_socket_manager,node_mongodb toneAmber
class node_user_model,node_meeting_model toneMint
class node_visitor toneIndigo
```

## Components

### Web app

- [App flow](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/src/App.jsx): `Frontend/chatapp/src/App.jsx`
- [Landing page](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/LandingPage.jsx): `Frontend/chatapp/components/LandingPage.jsx`
- [Account form](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/AuthPanel.jsx): `Frontend/chatapp/components/AuthPanel.jsx`
- [Meeting dashboard](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/Dashboard.jsx): `Frontend/chatapp/components/Dashboard.jsx`
- [Room chat](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/chat.jsx): `Frontend/chatapp/components/chat.jsx`
- [Video interface](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/components/video.jsx): `Frontend/chatapp/components/video.jsx`
- [Socket client](https://github.com/rahulshamra/zoom/blob/main/Frontend/chatapp/src/socket.js): `Frontend/chatapp/src/socket.js`

### Backend services

- [HTTP app](https://github.com/rahulshamra/zoom/blob/main/Backend/src/app.js): `Backend/src/app.js`
- [User routes](https://github.com/rahulshamra/zoom/blob/main/Backend/src/routes/user.js): `Backend/src/routes/user.js`
- [Account and meetings](https://github.com/rahulshamra/zoom/blob/main/Backend/src/controllers/userControlller.js): `Backend/src/controllers/userControlller.js`
- [Session verification](https://github.com/rahulshamra/zoom/blob/main/Backend/src/middleware/auth.js): `Backend/src/middleware/auth.js`
- [Room events](https://github.com/rahulshamra/zoom/blob/main/Backend/src/controllers/socketManager.js): `Backend/src/controllers/socketManager.js`

### Persistence

- [User records](https://github.com/rahulshamra/zoom/blob/main/Backend/src/models/userSchema.js): `Backend/src/models/userSchema.js`
- [Meeting records](https://github.com/rahulshamra/zoom/blob/main/Backend/src/models/mettingSchema.js): `Backend/src/models/mettingSchema.js`

### Other components

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

## Connections

- Visitor → App flow: opens app
- App flow → Landing page: renders (evidence: `Frontend/chatapp/src/App.jsx`)
- App flow → Account form: renders (evidence: `Frontend/chatapp/src/App.jsx`)
- App flow → Meeting dashboard: renders (evidence: `Frontend/chatapp/src/App.jsx`)
- App flow → Room chat: renders (evidence: `Frontend/chatapp/src/App.jsx`)
- App flow → HTTP app: checks session (evidence: `Frontend/chatapp/src/App.jsx`)
- Account form → User routes: posts credentials (evidence: `Frontend/chatapp/components/AuthPanel.jsx`)
- Meeting dashboard → User routes: requests meetings (evidence: `Frontend/chatapp/components/Dashboard.jsx`)
- Video interface → Socket client: uses (evidence: `Frontend/chatapp/components/video.jsx`)
- Room chat → Socket client: uses
- Socket client → Room events: connects to
- HTTP app → User routes: mounts routes (evidence: `Backend/src/app.js`)
- HTTP app → Room events: initializes (evidence: `Backend/src/app.js`)
- User routes → Account and meetings: dispatches (evidence: `Backend/src/routes/user.js`)
- User routes → Session verification: requires session (evidence: `Backend/src/routes/user.js`)
- Account and meetings → User records: reads and updates (evidence: `Backend/src/controllers/userControlller.js`)
- Account and meetings → Meeting records: reads and updates (evidence: `Backend/src/controllers/userControlller.js`)
- Room events → Session verification: extracts cookie (evidence: `Backend/src/controllers/socketManager.js`)
- Room events → User records: checks membership (evidence: `Backend/src/controllers/socketManager.js`)
- Room events → Meeting records: checks and saves chat (evidence: `Backend/src/controllers/socketManager.js`)
- HTTP app → MongoDB: connects (evidence: `Backend/src/app.js`)
- User records → MongoDB: stores users
- Meeting records → MongoDB: stores meetings
