# audri-23/career-bridge-video-calling-interview-platform architecture

> Architecture diagram of the GitHub repository audri-23/career-bridge-video-calling-interview-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/audri-23/career-bridge-video-calling-interview-platform
- Repository: https://github.com/audri-23/career-bridge-video-calling-interview-platform

## Overview

Career Bridge combines authenticated coding practice with backend-managed collaborative sessions. The main visible practice flow is a signed-in user opening a problem, editing and running starter code, then comparing execution output with expected output. Session endpoints create, join, list, and end sessions, coordinating persisted session state with Stream video/chat. The excerpts show these backend relationships, but not the frontend session experience or Inngest function behavior; those links are therefore omitted.

Main entry points: [`frontend/src/pages/ProblemPage.jsx`](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/ProblemPage.jsx) (Problem workspace), [`backend/src/server.js`](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/server.js) (API server), [`frontend/src/App.jsx`](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/App.jsx) (Route and auth shell), [`backend/src/routes/sessionRoutes.js`](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/routes/sessionRoutes.js) (Session routes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web application"]
  node_app["Route and auth shell<br/>[App.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_dashboard["Dashboard<br/>[DashboardPage.jsx]"]
end

subgraph group_practice["Coding practice"]
  node_problems["Problem catalog<br/>[ProblemsPage.jsx]"]
  node_problemdata["Problem definitions<br/>[problems.js]"]
  node_problem["Problem workspace<br/>[ProblemPage.jsx]"]
  node_description["Problem description"]
  node_editor["Code editor"]
  node_runner["Code execution client<br/>[wandbox.js]"]
  node_output["Output and test result<br/>[OutputPanel.jsx]"]
end

subgraph group_api["Session API"]
  node_sessionroutes["Session routes<br/>[sessionRoutes.js]"]
  node_chatroutes["Chat routes<br/>[chatRoutes.js]"]
  node_sessionctl["Session operations"]
  node_chatctl["Chat token handler<br/>[chatController.js]"]
  node_sessionstore[("Session records<br/>[Session.js]")]
  node_server["API server<br/>[server.js]"]
end

subgraph group_platform["Identity and infrastructure"]
  node_auth["Route protection<br/>[protectRoute.js]"]
  node_users[("User records<br/>[User.js]")]
  node_db["Database connection<br/>[db.js]"]
  node_env["Environment config<br/>[env.js]"]
  node_stream["Stream integration<br/>[stream.js]"]
  node_inngest["Inngest functions<br/>[inngest.js]"]
end

node_user(("User"))
node_clerk["Clerk identity"]
node_wandbox["Wandbox execution service"]
node_mongodb[("MongoDB")]
node_streamservice["Stream services"]

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_problems
node_app -->|"routes to"| node_problem
node_user -->|"solves"| node_problem
node_problem -->|"loads"| node_problemdata
node_problem -->|"renders"| node_description
node_problem -->|"renders"| node_editor
node_problem -->|"executes via"| node_runner
node_problem -->|"renders"| node_output
node_problems -->|"reads"| node_problemdata
node_runner -->|"submits code"| node_wandbox
node_user -->|"requests sessions"| node_sessionroutes
node_server -->|"mounts"| node_sessionroutes
node_server -->|"mounts"| node_chatroutes
node_sessionroutes -->|"protects routes"| node_auth
node_sessionroutes -->|"dispatches"| node_sessionctl
node_chatroutes -->|"protects route"| node_auth
node_chatroutes -->|"dispatches"| node_chatctl
node_auth -->|"looks up user"| node_users
node_sessionctl -->|"reads and writes"| node_sessionstore
node_sessionctl -->|"coordinates calls"| node_stream
node_chatctl -->|"uses client"| node_stream
node_stream -->|"connects"| node_streamservice
node_server -->|"connects on startup"| node_db
node_db -.->|"connects"| node_mongodb
node_server -->|"serves functions"| node_inngest
node_server -->|"configures from"| node_env
node_db -->|"reads config"| node_env
node_stream -->|"reads keys"| node_env
node_clerk -.->|"authenticates"| node_auth

click node_app "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/HomePage.jsx"
click node_dashboard "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/DashboardPage.jsx"
click node_problems "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/ProblemsPage.jsx"
click node_problemdata "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/data/problems.js"
click node_problem "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/ProblemPage.jsx"
click node_description "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/ProblemDescription.jsx"
click node_editor "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/CodeEditorPanel.jsx"
click node_runner "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/lib/wandbox.js"
click node_output "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/OutputPanel.jsx"
click node_sessionroutes "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/routes/sessionRoutes.js"
click node_chatroutes "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/routes/chatRoutes.js"
click node_sessionctl "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/controllers/sessionController.js"
click node_chatctl "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/controllers/chatController.js"
click node_sessionstore "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/models/Session.js"
click node_server "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/server.js"
click node_auth "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/middleware/protectRoute.js"
click node_users "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/models/User.js"
click node_db "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/db.js"
click node_env "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/env.js"
click node_stream "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/stream.js"
click node_inngest "https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/inngest.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_home,node_dashboard,node_user toneBlue
class node_problems,node_problemdata,node_problem,node_description,node_editor,node_runner,node_output,node_mongodb toneAmber
class node_sessionroutes,node_chatroutes,node_sessionctl,node_chatctl,node_sessionstore,node_server toneMint
class node_auth,node_users,node_db,node_env,node_stream,node_inngest toneRose
class node_clerk,node_wandbox,node_streamservice toneIndigo
```

## Components

### Web application

- [Route and auth shell](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Home page](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/HomePage.jsx): `frontend/src/pages/HomePage.jsx`
- [Dashboard](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/DashboardPage.jsx): `frontend/src/pages/DashboardPage.jsx`

### Coding practice

- [Problem catalog](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/ProblemsPage.jsx): `frontend/src/pages/ProblemsPage.jsx`
- [Problem definitions](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/data/problems.js): `frontend/src/data/problems.js`
- [Problem workspace](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/pages/ProblemPage.jsx): `frontend/src/pages/ProblemPage.jsx`
- [Problem description](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/ProblemDescription.jsx): `frontend/src/components/ProblemDescription.jsx`
- [Code editor](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/CodeEditorPanel.jsx): `frontend/src/components/CodeEditorPanel.jsx`
- [Code execution client](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/lib/wandbox.js): `frontend/src/lib/wandbox.js`
- [Output and test result](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/frontend/src/components/OutputPanel.jsx): `frontend/src/components/OutputPanel.jsx`

### Session API

- [Session routes](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/routes/sessionRoutes.js): `backend/src/routes/sessionRoutes.js`
- [Chat routes](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/routes/chatRoutes.js): `backend/src/routes/chatRoutes.js`
- [Session operations](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/controllers/sessionController.js): `backend/src/controllers/sessionController.js`
- [Chat token handler](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/controllers/chatController.js): `backend/src/controllers/chatController.js`
- [Session records](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/models/Session.js): `backend/src/models/Session.js`
- [API server](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/server.js): `backend/src/server.js`

### Identity and infrastructure

- [Route protection](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/middleware/protectRoute.js): `backend/src/middleware/protectRoute.js`
- [User records](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/models/User.js): `backend/src/models/User.js`
- [Database connection](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/db.js): `backend/src/lib/db.js`
- [Environment config](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/env.js): `backend/src/lib/env.js`
- [Stream integration](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/stream.js): `backend/src/lib/stream.js`
- [Inngest functions](https://github.com/audri-23/career-bridge-video-calling-interview-platform/blob/main/backend/src/lib/inngest.js): `backend/src/lib/inngest.js`

### Other components

- **User**
- **Clerk identity**
- **Wandbox execution service**
- **MongoDB**
- **Stream services**

## Connections

- User → Route and auth shell: opens (evidence: `frontend/src/App.jsx`)
- Route and auth shell → Home page: routes to (evidence: `frontend/src/App.jsx`)
- Route and auth shell → Dashboard: routes to (evidence: `frontend/src/App.jsx`)
- Route and auth shell → Problem catalog: routes to (evidence: `frontend/src/App.jsx`)
- Route and auth shell → Problem workspace: routes to (evidence: `frontend/src/App.jsx`)
- User → Problem workspace: solves (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem workspace → Problem definitions: loads (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem workspace → Problem description: renders (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem workspace → Code editor: renders (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem workspace → Code execution client: executes via (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem workspace → Output and test result: renders (evidence: `frontend/src/pages/ProblemPage.jsx`)
- Problem catalog → Problem definitions: reads (evidence: `frontend/src/pages/ProblemsPage.jsx`)
- Code execution client → Wandbox execution service: submits code (evidence: `frontend/src/lib/wandbox.js`)
- User → Session routes: requests sessions
- API server → Session routes: mounts (evidence: `backend/src/server.js`)
- API server → Chat routes: mounts (evidence: `backend/src/server.js`)
- Session routes → Route protection: protects routes (evidence: `backend/src/routes/sessionRoutes.js`)
- Session routes → Session operations: dispatches (evidence: `backend/src/routes/sessionRoutes.js`)
- Chat routes → Route protection: protects route (evidence: `backend/src/routes/chatRoutes.js`)
- Chat routes → Chat token handler: dispatches (evidence: `backend/src/routes/chatRoutes.js`)
- Route protection → User records: looks up user (evidence: `backend/src/middleware/protectRoute.js`)
- Session operations → Session records: reads and writes (evidence: `backend/src/controllers/sessionController.js`)
- Session operations → Stream integration: coordinates calls (evidence: `backend/src/controllers/sessionController.js`)
- Chat token handler → Stream integration: uses client (evidence: `backend/src/controllers/chatController.js`)
- Stream integration → Stream services: connects (evidence: `backend/src/lib/stream.js`)
- API server → Database connection: connects on startup (evidence: `backend/src/server.js`)
- Database connection → MongoDB: connects
- API server → Inngest functions: serves functions (evidence: `backend/src/server.js`)
- API server → Environment config: configures from (evidence: `backend/src/server.js`)
- Database connection → Environment config: reads config (evidence: `backend/src/lib/db.js`)
- Stream integration → Environment config: reads keys (evidence: `backend/src/lib/stream.js`)
- Clerk identity → Route protection: authenticates
