# srilakshmi1013/online architecture

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

## Overview

OCAP is a Django online coding-assessment platform. Candidates browse problems, run or submit code, and can participate in assessments; the platform records submissions and assessment results for performance tracking. Separate capabilities include account management, recruiter reporting, discussion, and learning topics. The sampled question-submission path executes code directly in the question views, while the submissions views also use a multi-language executor. Several subsystems are represented from the README and source index; their internal wiring is not fully shown.

Main entry points: [`submissions/models.py`](https://github.com/srilakshmi1013/online/blob/main/submissions/models.py) (Submission records), [`OnlineCodingAssessment/views.py`](https://github.com/srilakshmi1013/online/blob/main/OnlineCodingAssessment/views.py) (Candidate home), [`questions/views.py`](https://github.com/srilakshmi1013/online/blob/main/questions/views.py) (Browse and submit), [`submissions/views.py`](https://github.com/srilakshmi1013/online/blob/main/submissions/views.py) (Submission handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_accounts["Accounts"]
  node_account_flow["Account management"]
  node_account_data[("User records<br/>[models.py]")]
end

subgraph group_coding["Coding Practice"]
  node_home["Candidate home<br/>[views.py]"]
  node_problem_bank[("Problem bank<br/>[models.py]")]
  node_problem_views["Browse and submit<br/>[views.py]"]
  node_submission_views["Submission handling<br/>[views.py]"]
  node_executor["Code executor<br/>[executor.py]"]
  node_submission_data[("Submission records<br/>[models.py]")]
end

subgraph group_assessments["Assessments"]
  node_assessment_data[("Assessment content<br/>[models.py]")]
  node_candidate_views["Assessment dashboard<br/>[views.py]"]
  node_assessment_results["Assessment results<br/>[views.py]"]
  node_result_data[("Result records<br/>[models.py]")]
end

subgraph group_engagement["Learning &amp; Community"]
  node_topics["Learning topics<br/>[views.py]"]
  node_discussion["Discussion forum<br/>[views.py]"]
end

subgraph group_insights["Performance &amp; Reporting"]
  node_recruiter["Recruiter dashboard<br/>[views.py]"]
  node_leaderboard["Leaderboard<br/>[views.py]"]
end

node_candidate(("Candidate"))

node_candidate -->|"manages account"| node_account_flow
node_account_flow -->|"validates and saves"| node_account_data
node_candidate -->|"views progress"| node_home
node_home -->|"counts problems"| node_problem_bank
node_home -->|"summarizes scores"| node_submission_data
node_candidate -->|"browses and submits"| node_problem_views
node_problem_views -->|"reads problems"| node_problem_bank
node_problem_views -->|"stores solution"| node_submission_data
node_candidate -->|"submits code"| node_submission_views
node_submission_views -->|"runs code"| node_executor
node_submission_views -->|"stores submission"| node_submission_data
node_candidate -->|"opens assessments"| node_candidate_views
node_candidate_views -->|"reads assessment"| node_assessment_data
node_candidate_views -->|"checks attempts"| node_result_data
node_candidate -->|"takes assessment"| node_assessment_results
node_assessment_results -->|"loads questions"| node_assessment_data
node_assessment_results -->|"saves and reads results"| node_result_data
node_candidate -->|"explores topics"| node_topics
node_candidate -->|"joins discussion"| node_discussion
node_discussion -->|"records posts and replies"| node_candidate
node_recruiter -->|"aggregates submissions"| node_submission_data
node_recruiter -->|"lists problems"| node_problem_bank
node_candidate -->|"tracks performance"| node_leaderboard

click node_account_flow "https://github.com/srilakshmi1013/online/tree/main/accounts"
click node_account_data "https://github.com/srilakshmi1013/online/blob/main/accounts/models.py"
click node_home "https://github.com/srilakshmi1013/online/blob/main/OnlineCodingAssessment/views.py"
click node_problem_bank "https://github.com/srilakshmi1013/online/blob/main/questions/models.py"
click node_problem_views "https://github.com/srilakshmi1013/online/blob/main/questions/views.py"
click node_submission_views "https://github.com/srilakshmi1013/online/blob/main/submissions/views.py"
click node_executor "https://github.com/srilakshmi1013/online/blob/main/submissions/executor.py"
click node_submission_data "https://github.com/srilakshmi1013/online/blob/main/submissions/models.py"
click node_assessment_data "https://github.com/srilakshmi1013/online/blob/main/assessments/models.py"
click node_candidate_views "https://github.com/srilakshmi1013/online/blob/main/candidates/views.py"
click node_assessment_results "https://github.com/srilakshmi1013/online/blob/main/results/views.py"
click node_result_data "https://github.com/srilakshmi1013/online/blob/main/results/models.py"
click node_topics "https://github.com/srilakshmi1013/online/blob/main/quest/views.py"
click node_discussion "https://github.com/srilakshmi1013/online/blob/main/discuss/views.py"
click node_recruiter "https://github.com/srilakshmi1013/online/blob/main/recruiter/views.py"
click node_leaderboard "https://github.com/srilakshmi1013/online/blob/main/leaderboard/views.py"

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_account_flow,node_account_data toneBlue
class node_home,node_problem_bank,node_problem_views,node_submission_views,node_executor,node_submission_data toneAmber
class node_assessment_data,node_candidate_views,node_assessment_results,node_result_data toneMint
class node_topics,node_discussion toneRose
class node_recruiter,node_leaderboard,node_candidate toneIndigo
```

## Components

### Accounts

- [Account management](https://github.com/srilakshmi1013/online/tree/main/accounts): `accounts`
- [User records](https://github.com/srilakshmi1013/online/blob/main/accounts/models.py): `accounts/models.py`

### Coding Practice

- [Candidate home](https://github.com/srilakshmi1013/online/blob/main/OnlineCodingAssessment/views.py): `OnlineCodingAssessment/views.py`
- [Problem bank](https://github.com/srilakshmi1013/online/blob/main/questions/models.py): `questions/models.py`
- [Browse and submit](https://github.com/srilakshmi1013/online/blob/main/questions/views.py): `questions/views.py`
- [Submission handling](https://github.com/srilakshmi1013/online/blob/main/submissions/views.py): `submissions/views.py`
- [Code executor](https://github.com/srilakshmi1013/online/blob/main/submissions/executor.py): `submissions/executor.py`
- [Submission records](https://github.com/srilakshmi1013/online/blob/main/submissions/models.py): `submissions/models.py`

### Assessments

- [Assessment content](https://github.com/srilakshmi1013/online/blob/main/assessments/models.py): `assessments/models.py`
- [Assessment dashboard](https://github.com/srilakshmi1013/online/blob/main/candidates/views.py): `candidates/views.py`
- [Assessment results](https://github.com/srilakshmi1013/online/blob/main/results/views.py): `results/views.py`
- [Result records](https://github.com/srilakshmi1013/online/blob/main/results/models.py): `results/models.py`

### Learning & Community

- [Learning topics](https://github.com/srilakshmi1013/online/blob/main/quest/views.py): `quest/views.py`
- [Discussion forum](https://github.com/srilakshmi1013/online/blob/main/discuss/views.py): `discuss/views.py`

### Performance & Reporting

- [Recruiter dashboard](https://github.com/srilakshmi1013/online/blob/main/recruiter/views.py): `recruiter/views.py`
- [Leaderboard](https://github.com/srilakshmi1013/online/blob/main/leaderboard/views.py): `leaderboard/views.py`

### Other components

- **Candidate**

## Connections

- Candidate → Account management: manages account
- Account management → User records: validates and saves (evidence: `accounts/forms.py`)
- Candidate → Candidate home: views progress
- Candidate home → Problem bank: counts problems (evidence: `OnlineCodingAssessment/views.py`)
- Candidate home → Submission records: summarizes scores (evidence: `OnlineCodingAssessment/views.py`)
- Candidate → Browse and submit: browses and submits
- Browse and submit → Problem bank: reads problems (evidence: `questions/views.py`)
- Browse and submit → Submission records: stores solution (evidence: `questions/views.py`)
- Candidate → Submission handling: submits code
- Submission handling → Code executor: runs code (evidence: `submissions/views.py`)
- Submission handling → Submission records: stores submission (evidence: `submissions/views.py`)
- Candidate → Assessment dashboard: opens assessments
- Assessment dashboard → Assessment content: reads assessment (evidence: `candidates/views.py`)
- Assessment dashboard → Result records: checks attempts (evidence: `candidates/views.py`)
- Candidate → Assessment results: takes assessment
- Assessment results → Assessment content: loads questions (evidence: `results/views.py`)
- Assessment results → Result records: saves and reads results (evidence: `results/views.py`)
- Candidate → Learning topics: explores topics
- Candidate → Discussion forum: joins discussion
- Discussion forum → Candidate: records posts and replies (evidence: `discuss/views.py`)
- Recruiter dashboard → Submission records: aggregates submissions (evidence: `recruiter/views.py`)
- Recruiter dashboard → Problem bank: lists problems (evidence: `recruiter/views.py`)
- Candidate → Leaderboard: tracks performance
