# praneeth9661/qodriva architecture

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

## Overview

Qodriva is a coding-practice platform: a learner signs in or explores as a guest, finds a problem, works in the code workspace, runs or submits code, and reviews progress and rankings. The React client concentrates its interface and much of its state in App.jsx; the Express API provides authentication, problem data, execution, progress, leaderboard, and administrator routes. Persistent storage and Judge0 are optional integrations. The source excerpts show only part of the client and server, so documented capabilities are included, but unverified internal calls are not inferred.

Main entry points: [`server/index.js`](https://github.com/praneeth9661/qodriva/blob/main/server/index.js) (Express API), [`client/src/App.jsx`](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx) (Sign-in and profile), [`client/src/main.jsx`](https://github.com/praneeth9661/qodriva/blob/main/client/src/main.jsx) (React application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Practice client"]
  node_app["React application<br/>[main.jsx]"]
  node_auth_ui["Sign-in and profile<br/>[App.jsx]"]
  node_catalog_ui["Problem catalog<br/>[App.jsx]"]
  node_workspace["Code workspace<br/>[App.jsx]"]
  node_result_ui["Execution results<br/>[App.jsx]"]
  node_progress_ui["Progress views<br/>[App.jsx]"]
  node_leaderboard_ui["Leaderboard view<br/>[App.jsx]"]
end

subgraph group_api["Platform API"]
  node_api["Express API<br/>[index.js]"]
  node_auth["Authentication and sessions<br/>[index.js]"]
  node_problem_api["Problem catalog API<br/>[index.js]"]
  node_submission["Submission handling<br/>[index.js]"]
  node_progress["Progress and ranking<br/>[index.js]"]
  node_user_admin["Administrator user routes<br/>[index.js]"]
  node_storage[("Account and submission storage<br/>[index.js]")]
end

subgraph group_integrations["External services"]
  node_judge0["Judge0-compatible runner"]
end

node_learner(("Learner"))
node_browser_storage[("Browser demo storage")]

node_learner -->|"uses"| node_app
node_app -->|"renders"| node_auth_ui
node_learner -->|"signs in"| node_auth_ui
node_auth_ui -.->|"saves demo profile"| node_browser_storage
node_auth_ui -->|"requests auth"| node_api
node_learner -->|"searches problems"| node_catalog_ui
node_catalog_ui -->|"fetches problems"| node_api
node_learner -->|"writes code"| node_workspace
node_workspace -->|"submits code"| node_api
node_api -->|"routes requests"| node_submission
node_submission -.->|"executes code"| node_judge0
node_submission -->|"returns results"| node_result_ui
node_submission -->|"records accepted work"| node_progress
node_progress -.->|"persists progress"| node_storage
node_progress -->|"provides progress"| node_progress_ui
node_progress -->|"provides rankings"| node_leaderboard_ui
node_api -->|"routes catalog"| node_problem_api
node_api -->|"routes auth"| node_auth
node_api -->|"routes user CRUD"| node_user_admin
node_auth -.->|"stores accounts"| node_storage
node_user_admin -.->|"manages users"| node_storage

click node_app "https://github.com/praneeth9661/qodriva/blob/main/client/src/main.jsx"
click node_auth_ui "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_catalog_ui "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_workspace "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_result_ui "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_progress_ui "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_leaderboard_ui "https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx"
click node_api "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_auth "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_problem_api "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_submission "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_progress "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_user_admin "https://github.com/praneeth9661/qodriva/blob/main/server/index.js"
click node_storage "https://github.com/praneeth9661/qodriva/blob/main/server/index.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_auth_ui,node_catalog_ui,node_workspace,node_result_ui,node_progress_ui,node_leaderboard_ui toneBlue
class node_api,node_auth,node_problem_api,node_submission,node_progress,node_user_admin,node_storage,node_browser_storage toneAmber
class node_judge0 toneMint
class node_learner toneIndigo
```

## Components

### Practice client

- [React application](https://github.com/praneeth9661/qodriva/blob/main/client/src/main.jsx): `client/src/main.jsx`
- [Sign-in and profile](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Problem catalog](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Code workspace](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Execution results](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Progress views](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`
- [Leaderboard view](https://github.com/praneeth9661/qodriva/blob/main/client/src/App.jsx): `client/src/App.jsx`

### Platform API

- [Express API](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Authentication and sessions](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Problem catalog API](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Submission handling](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Progress and ranking](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Administrator user routes](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`
- [Account and submission storage](https://github.com/praneeth9661/qodriva/blob/main/server/index.js): `server/index.js`

### External services

- **Judge0-compatible runner**

### Other components

- **Learner**
- **Browser demo storage**

## Connections

- Learner → React application: uses (evidence: `README.md`)
- React application → Sign-in and profile: renders (evidence: `client/src/main.jsx`)
- Learner → Sign-in and profile: signs in (evidence: `README.md`)
- Sign-in and profile → Browser demo storage: saves demo profile (evidence: `README.md`)
- Sign-in and profile → Express API: requests auth (evidence: `README.md`)
- Learner → Problem catalog: searches problems (evidence: `README.md`)
- Problem catalog → Express API: fetches problems (evidence: `README.md`)
- Learner → Code workspace: writes code (evidence: `README.md`)
- Code workspace → Express API: submits code (evidence: `README.md`)
- Express API → Submission handling: routes requests (evidence: `server/index.js`)
- Submission handling → Judge0-compatible runner: executes code (evidence: `README.md`)
- Submission handling → Execution results: returns results (evidence: `README.md`)
- Submission handling → Progress and ranking: records accepted work (evidence: `README.md`)
- Progress and ranking → Account and submission storage: persists progress (evidence: `README.md`)
- Progress and ranking → Progress views: provides progress (evidence: `server/index.js`)
- Progress and ranking → Leaderboard view: provides rankings (evidence: `README.md`)
- Express API → Problem catalog API: routes catalog (evidence: `server/index.js`)
- Express API → Authentication and sessions: routes auth (evidence: `server/index.js`)
- Express API → Administrator user routes: routes user CRUD (evidence: `server/index.js`)
- Authentication and sessions → Account and submission storage: stores accounts (evidence: `README.md`)
- Administrator user routes → Account and submission storage: manages users (evidence: `README.md`)
