# deveshpardhi/video_conferencing_application architecture

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

- Interactive diagram: https://gitdiagram.com/deveshpardhi/video_conferencing_application
- Repository: https://github.com/deveshpardhi/video_conferencing_application

## Overview

Video_Conferencing_Application is a browser-based video conferencing app with account access, meeting history, and live meeting features. The main workflow is: authenticate, enter a meeting code (which is recorded in history), then join a room for peer video/audio, chat, and screen sharing. The frontend uses a shared auth context to call the Express API; the backend routes user and history requests to controllers backed by MongoDB, while Socket.IO handles room signaling and chat. Several client/server connections are inferred from matching endpoints and are marked unverified because the excerpts do not show their full wiring.

Main entry points: [`FRONTEND/my-app/src/App.js`](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/App.js) (Route application), [`FRONTEND/my-app/src/pages/videoMeet.jsx`](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/videoMeet.jsx) (Meeting interface), [`FRONTEND/my-app/src/contexts/AuthContext.jsx`](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/contexts/AuthContext.jsx) (Auth and API context), [`FRONTEND/my-app/src/pages/home.jsx`](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/home.jsx) (Meeting home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Client experience"]
  node_app["Route application<br/>[App.js]"]
  node_landing["Landing page<br/>[landing.jsx]"]
  node_home["Meeting home<br/>[home.jsx]"]
end

subgraph group_identity["Identity and history"]
  node_authpage["Sign-in and signup<br/>[authentication.jsx]"]
  node_authcontext["Auth and API context<br/>[AuthContext.jsx]"]
  node_guard["Auth route guard<br/>[withAuth.jsx]"]
  node_historypage["Meeting history view<br/>[history.jsx]"]
end

subgraph group_meeting["Live meetings"]
  node_meetingpage["Meeting interface<br/>[videoMeet.jsx]"]
  node_socket["Socket room manager<br/>[socketManager.js]"]
end

subgraph group_backend["Backend services"]
  node_api["Express API server<br/>[app.js]"]
  node_useroutes["User API routes<br/>[users.routes.js]"]
  node_usercontroller["Account and history logic<br/>[user.controller.js]"]
  node_usermodel[("User records<br/>[user.model.js]")]
  node_meetingmodel[("Meeting records<br/>[meeting.model.js]")]
end

node_user(("Meeting user"))
node_browsermedia["Browser media devices"]
node_mongodb[("MongoDB")]

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_landing
node_app -->|"routes to"| node_authpage
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_historypage
node_app -->|"routes to"| node_meetingpage
node_app -->|"provides context"| node_authcontext
node_authpage -->|"calls auth"| node_authcontext
node_home -->|"uses guard"| node_guard
node_home -->|"records meeting"| node_authcontext
node_home -->|"navigates to"| node_meetingpage
node_historypage -->|"loads history"| node_authcontext
node_authcontext -.->|"calls user API"| node_api
node_api -->|"mounts routes"| node_useroutes
node_api -->|"initializes sockets"| node_socket
node_api -->|"connects to"| node_mongodb
node_useroutes -->|"dispatches requests"| node_usercontroller
node_usercontroller -->|"reads and writes"| node_usermodel
node_usercontroller -->|"reads and writes"| node_meetingmodel
node_meetingpage -->|"captures media"| node_browsermedia
node_meetingpage -.->|"signals and chats"| node_socket
node_user -->|"joins meeting"| node_meetingpage

click node_app "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/App.js"
click node_landing "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/landing.jsx"
click node_authpage "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/authentication.jsx"
click node_authcontext "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/contexts/AuthContext.jsx"
click node_guard "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/utils/withAuth.jsx"
click node_home "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/home.jsx"
click node_historypage "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/history.jsx"
click node_meetingpage "https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/videoMeet.jsx"
click node_api "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/app.js"
click node_useroutes "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/routes/users.routes.js"
click node_usercontroller "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/controllers/user.controller.js"
click node_usermodel "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/models/user.model.js"
click node_meetingmodel "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/models/meeting.model.js"
click node_socket "https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/controllers/socketManager.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_home,node_user,node_browsermedia toneBlue
class node_authpage,node_authcontext,node_guard,node_historypage,node_mongodb toneAmber
class node_meetingpage,node_socket toneMint
class node_api,node_useroutes,node_usercontroller,node_usermodel,node_meetingmodel toneRose
```

## Components

### Client experience

- [Route application](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/App.js): `FRONTEND/my-app/src/App.js`
- [Landing page](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/landing.jsx): `FRONTEND/my-app/src/pages/landing.jsx`
- [Meeting home](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/home.jsx): `FRONTEND/my-app/src/pages/home.jsx`

### Identity and history

- [Sign-in and signup](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/authentication.jsx): `FRONTEND/my-app/src/pages/authentication.jsx`
- [Auth and API context](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/contexts/AuthContext.jsx): `FRONTEND/my-app/src/contexts/AuthContext.jsx`
- [Auth route guard](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/utils/withAuth.jsx): `FRONTEND/my-app/src/utils/withAuth.jsx`
- [Meeting history view](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/history.jsx): `FRONTEND/my-app/src/pages/history.jsx`

### Live meetings

- [Meeting interface](https://github.com/deveshpardhi/video_conferencing_application/blob/main/FRONTEND/my-app/src/pages/videoMeet.jsx): `FRONTEND/my-app/src/pages/videoMeet.jsx`
- [Socket room manager](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/controllers/socketManager.js): `BACKEND/src/controllers/socketManager.js`

### Backend services

- [Express API server](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/app.js): `BACKEND/src/app.js`
- [User API routes](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/routes/users.routes.js): `BACKEND/src/routes/users.routes.js`
- [Account and history logic](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/controllers/user.controller.js): `BACKEND/src/controllers/user.controller.js`
- [User records](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/models/user.model.js): `BACKEND/src/models/user.model.js`
- [Meeting records](https://github.com/deveshpardhi/video_conferencing_application/blob/main/BACKEND/src/models/meeting.model.js): `BACKEND/src/models/meeting.model.js`

### Other components

- **Meeting user**
- **Browser media devices**
- **MongoDB**

## Connections

- Meeting user → Route application: opens (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Landing page: routes to (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Sign-in and signup: routes to (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Meeting home: routes to (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Meeting history view: routes to (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Meeting interface: routes to (evidence: `FRONTEND/my-app/src/App.js`)
- Route application → Auth and API context: provides context (evidence: `FRONTEND/my-app/src/App.js`)
- Sign-in and signup → Auth and API context: calls auth (evidence: `FRONTEND/my-app/src/pages/authentication.jsx`)
- Meeting home → Auth route guard: uses guard (evidence: `FRONTEND/my-app/src/pages/home.jsx`)
- Meeting home → Auth and API context: records meeting (evidence: `FRONTEND/my-app/src/pages/home.jsx`)
- Meeting home → Meeting interface: navigates to (evidence: `FRONTEND/my-app/src/pages/home.jsx`)
- Meeting history view → Auth and API context: loads history (evidence: `FRONTEND/my-app/src/pages/history.jsx`)
- Auth and API context → Express API server: calls user API
- Express API server → User API routes: mounts routes (evidence: `BACKEND/src/app.js`)
- Express API server → Socket room manager: initializes sockets (evidence: `BACKEND/src/app.js`)
- Express API server → MongoDB: connects to (evidence: `BACKEND/src/app.js`)
- User API routes → Account and history logic: dispatches requests (evidence: `BACKEND/src/routes/users.routes.js`)
- Account and history logic → User records: reads and writes (evidence: `BACKEND/src/controllers/user.controller.js`)
- Account and history logic → Meeting records: reads and writes (evidence: `BACKEND/src/controllers/user.controller.js`)
- Meeting interface → Browser media devices: captures media (evidence: `FRONTEND/my-app/src/pages/videoMeet.jsx`)
- Meeting interface → Socket room manager: signals and chats
- Meeting user → Meeting interface: joins meeting
