# mongaagam/zoomclone architecture

> Architecture diagram of the GitHub repository mongaagam/zoomclone, 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/mongaagam/zoomclone
- Repository: https://github.com/mongaagam/zoomclone

## Overview

Zoom is a video-conferencing application: users sign in, create or join a meeting, communicate in a live call, and can review meeting activity. The frontend routes users through landing, authentication, home, history, and meeting screens; an Express API handles account and activity requests, while Socket.IO relays meeting events. MongoDB persists users and meeting history. Some page implementations and the meeting event wiring are only partially excerpted, so uncertain connections are omitted or marked dashed.

Main entry points: [`frontend/src/App.js`](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/App.js) (Route shell), [`frontend/src/contexts/AuthContext.jsx`](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/contexts/AuthContext.jsx) (Auth and activity client), [`backend/src/app.js`](https://github.com/mongaagam/zoomclone/blob/main/backend/src/app.js) (HTTP server setup), [`frontend/src/pages/home.jsx`](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/home.jsx) (Meeting home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web client"]
  node_app["Route shell<br/>[App.js]"]
  node_landing["Landing page<br/>[landing.jsx]"]
  node_authpage["Sign-in and registration<br/>[authentication.jsx]"]
  node_authcontext["Auth and activity client<br/>[AuthContext.jsx]"]
  node_home["Meeting home<br/>[home.jsx]"]
  node_guard["Authentication guard<br/>[withAuth.jsx]"]
  node_historypage["Activity history<br/>[history.jsx]"]
  node_videomeet["Meeting experience<br/>[VideoMeet.jsx]"]
  node_serverconfig["Backend address<br/>[environment.js]"]
end

subgraph group_api["Account and activity API"]
  node_usersroutes["User API routes<br/>[users.routes.js]"]
  node_usercontroller["Account and history handlers<br/>[user.controller.js]"]
  node_appserver["HTTP server setup<br/>[app.js]"]
end

subgraph group_realtime["Live meetings"]
  node_socketmanager["Meeting event relay<br/>[socketManager.js]"]
end

subgraph group_storage["Persistence"]
  node_userstore[("User records<br/>[user.model.js]")]
  node_meetingstore[("Meeting records<br/>[meeting.model.js]")]
end

node_participant(("Participant"))
node_mongodb[("MongoDB")]

node_participant -->|"uses"| 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_videomeet
node_app -->|"provides"| node_authcontext
node_authpage -.->|"uses"| node_authcontext
node_home -->|"fetches activity"| node_authcontext
node_home -->|"uses"| node_guard
node_historypage -.->|"uses"| node_authcontext
node_videomeet -.->|"records activity"| node_authcontext
node_authcontext -->|"reads address"| node_serverconfig
node_authcontext -->|"requests API"| node_usersroutes
node_appserver -->|"mounts routes"| node_usersroutes
node_usersroutes -->|"dispatches"| node_usercontroller
node_usercontroller -->|"reads and writes"| node_userstore
node_usercontroller -->|"reads and writes"| node_meetingstore
node_appserver -->|"starts relay"| node_socketmanager
node_videomeet -.->|"exchanges meeting events"| node_socketmanager
node_appserver -->|"connects"| node_mongodb
node_userstore -.->|"persists records"| node_mongodb
node_meetingstore -.->|"persists records"| node_mongodb

click node_app "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/App.js"
click node_landing "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/landing.jsx"
click node_authpage "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/authentication.jsx"
click node_authcontext "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/contexts/AuthContext.jsx"
click node_home "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/home.jsx"
click node_guard "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/utils/withAuth.jsx"
click node_historypage "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/history.jsx"
click node_videomeet "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/VideoMeet.jsx"
click node_serverconfig "https://github.com/mongaagam/zoomclone/blob/main/frontend/src/environment.js"
click node_usersroutes "https://github.com/mongaagam/zoomclone/blob/main/backend/src/routes/users.routes.js"
click node_usercontroller "https://github.com/mongaagam/zoomclone/blob/main/backend/src/controllers/user.controller.js"
click node_appserver "https://github.com/mongaagam/zoomclone/blob/main/backend/src/app.js"
click node_socketmanager "https://github.com/mongaagam/zoomclone/blob/main/backend/src/controllers/socketManager.js"
click node_userstore "https://github.com/mongaagam/zoomclone/blob/main/backend/src/models/user.model.js"
click node_meetingstore "https://github.com/mongaagam/zoomclone/blob/main/backend/src/models/meeting.model.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_authpage,node_authcontext,node_home,node_guard,node_historypage,node_videomeet,node_serverconfig toneBlue
class node_usersroutes,node_usercontroller,node_appserver,node_mongodb toneAmber
class node_socketmanager toneMint
class node_userstore,node_meetingstore toneRose
class node_participant toneIndigo
```

## Components

### Web client

- [Route shell](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/App.js): `frontend/src/App.js`
- [Landing page](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/landing.jsx): `frontend/src/pages/landing.jsx`
- [Sign-in and registration](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/authentication.jsx): `frontend/src/pages/authentication.jsx`
- [Auth and activity client](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/contexts/AuthContext.jsx): `frontend/src/contexts/AuthContext.jsx`
- [Meeting home](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/home.jsx): `frontend/src/pages/home.jsx`
- [Authentication guard](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/utils/withAuth.jsx): `frontend/src/utils/withAuth.jsx`
- [Activity history](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/history.jsx): `frontend/src/pages/history.jsx`
- [Meeting experience](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/pages/VideoMeet.jsx): `frontend/src/pages/VideoMeet.jsx`
- [Backend address](https://github.com/mongaagam/zoomclone/blob/main/frontend/src/environment.js): `frontend/src/environment.js`

### Account and activity API

- [User API routes](https://github.com/mongaagam/zoomclone/blob/main/backend/src/routes/users.routes.js): `backend/src/routes/users.routes.js`
- [Account and history handlers](https://github.com/mongaagam/zoomclone/blob/main/backend/src/controllers/user.controller.js): `backend/src/controllers/user.controller.js`
- [HTTP server setup](https://github.com/mongaagam/zoomclone/blob/main/backend/src/app.js): `backend/src/app.js`

### Live meetings

- [Meeting event relay](https://github.com/mongaagam/zoomclone/blob/main/backend/src/controllers/socketManager.js): `backend/src/controllers/socketManager.js`

### Persistence

- [User records](https://github.com/mongaagam/zoomclone/blob/main/backend/src/models/user.model.js): `backend/src/models/user.model.js`
- [Meeting records](https://github.com/mongaagam/zoomclone/blob/main/backend/src/models/meeting.model.js): `backend/src/models/meeting.model.js`

### Other components

- **Participant**
- **MongoDB**

## Connections

- Participant → Route shell: uses (evidence: `frontend/src/App.js`)
- Route shell → Landing page: routes to (evidence: `frontend/src/App.js`)
- Route shell → Sign-in and registration: routes to (evidence: `frontend/src/App.js`)
- Route shell → Meeting home: routes to (evidence: `frontend/src/App.js`)
- Route shell → Activity history: routes to (evidence: `frontend/src/App.js`)
- Route shell → Meeting experience: routes to (evidence: `frontend/src/App.js`)
- Route shell → Auth and activity client: provides (evidence: `frontend/src/App.js`)
- Sign-in and registration → Auth and activity client: uses (evidence: `frontend/src/pages/authentication.jsx`)
- Meeting home → Auth and activity client: fetches activity (evidence: `frontend/src/pages/home.jsx`)
- Meeting home → Authentication guard: uses (evidence: `frontend/src/pages/home.jsx`)
- Activity history → Auth and activity client: uses (evidence: `frontend/src/pages/history.jsx`)
- Meeting experience → Auth and activity client: records activity (evidence: `frontend/src/pages/VideoMeet.jsx`)
- Auth and activity client → Backend address: reads address (evidence: `frontend/src/contexts/AuthContext.jsx`)
- Auth and activity client → User API routes: requests API (evidence: `frontend/src/contexts/AuthContext.jsx`)
- HTTP server setup → User API routes: mounts routes (evidence: `backend/src/app.js`)
- User API routes → Account and history handlers: dispatches (evidence: `backend/src/routes/users.routes.js`)
- Account and history handlers → User records: reads and writes (evidence: `backend/src/controllers/user.controller.js`)
- Account and history handlers → Meeting records: reads and writes (evidence: `backend/src/controllers/user.controller.js`)
- HTTP server setup → Meeting event relay: starts relay (evidence: `backend/src/app.js`)
- Meeting experience → Meeting event relay: exchanges meeting events
- HTTP server setup → MongoDB: connects (evidence: `backend/src/app.js`)
- User records → MongoDB: persists records
- Meeting records → MongoDB: persists records
