# ahmedkhaleel2004/nocra architecture

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

- Interactive diagram: https://gitdiagram.com/ahmedkhaleel2004/nocra
- Repository: https://github.com/ahmedkhaleel2004/nocra

## Overview

Nocra is a competitive-learning website whose visible workflow is browsing course grades and projects, then comparing students on a leaderboard. The sampled implementation is a Next.js UI with hard-coded example data; the README describes peer and AI project reviews and cross-discipline ranking, but no backend, persistence, or review-generation code is present in the tree. Those capabilities are retained as documented, unimplemented stages. Edges reflect only page composition and component use visible in excerpts.

Main entry points: [`app/projects/page.tsx`](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/projects/page.tsx) (Project submissions), [`app/grades/page.tsx`](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/grades/page.tsx) (Course grades), [`app/leaderboard/page.tsx`](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/leaderboard/page.tsx) (Leaderboard), [`app/layout.tsx`](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/layout.tsx) (Application layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Website shell"]
  node_home["Home page<br/>[page.tsx]"]
  node_navigation["Site navigation<br/>[Header.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
  node_shell["Application layout<br/>[layout.tsx]"]
end

subgraph group_learning["Learning performance"]
  node_grades["Course grades<br/>[page.tsx]"]
  node_gradecard["Grade scoring<br/>[CourseCard.tsx]"]
end

subgraph group_projects["Project showcase"]
  node_projectlist["Project submissions<br/>[page.tsx]"]
  node_projectcard["Project detail<br/>[ProjectCard.tsx]"]
  node_feedbackdialog["Review feedback<br/>[DialogBox.tsx]"]
  node_peerreview["Peer review"]
  node_aireview["AI analysis"]
end

subgraph group_ranking["Competitive ranking"]
  node_leaderboard["Leaderboard<br/>[page.tsx]"]
  node_playercard["Rank display<br/>[PlayerCard.tsx]"]
  node_rankingmodel["Combined ranking"]
end

node_student(("Student"))

node_student -->|"browses"| node_home
node_student -->|"views grades"| node_grades
node_student -->|"views projects"| node_projectlist
node_student -->|"views ranks"| node_leaderboard
node_shell -->|"renders"| node_navigation
node_shell -->|"renders"| node_footer
node_grades -->|"renders"| node_gradecard
node_projectlist -->|"renders"| node_projectcard
node_projectcard -->|"opens"| node_feedbackdialog
node_leaderboard -->|"renders"| node_playercard
node_grades -.->|"contributes grades"| node_rankingmodel
node_projectlist -.->|"receives reviews"| node_peerreview
node_projectlist -.->|"receives analysis"| node_aireview
node_peerreview -.->|"contributes score"| node_rankingmodel
node_aireview -.->|"contributes score"| node_rankingmodel
node_rankingmodel -.->|"ranks students"| node_leaderboard

click node_home "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/page.tsx"
click node_navigation "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/Header.tsx"
click node_footer "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/Footer.tsx"
click node_shell "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/layout.tsx"
click node_grades "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/grades/page.tsx"
click node_gradecard "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/CourseCard.tsx"
click node_projectlist "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/projects/page.tsx"
click node_projectcard "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/ProjectCard.tsx"
click node_feedbackdialog "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/DialogBox.tsx"
click node_leaderboard "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/leaderboard/page.tsx"
click node_playercard "https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/PlayerCard.tsx"

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_home,node_navigation,node_footer,node_shell toneBlue
class node_grades,node_gradecard toneAmber
class node_projectlist,node_projectcard,node_feedbackdialog,node_peerreview,node_aireview toneMint
class node_leaderboard,node_playercard,node_rankingmodel toneRose
class node_student toneIndigo
```

## Components

### Website shell

- [Home page](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/page.tsx): `app/page.tsx`
- [Site navigation](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/Header.tsx): `app/components/Header.tsx`
- [Site footer](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/Footer.tsx): `app/components/Footer.tsx`
- [Application layout](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/layout.tsx): `app/layout.tsx`

### Learning performance

- [Course grades](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/grades/page.tsx): `app/grades/page.tsx`
- [Grade scoring](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/CourseCard.tsx): `app/components/CourseCard.tsx`

### Project showcase

- [Project submissions](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/projects/page.tsx): `app/projects/page.tsx`
- [Project detail](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/ProjectCard.tsx): `app/components/ProjectCard.tsx`
- [Review feedback](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/DialogBox.tsx): `app/components/DialogBox.tsx`
- **Peer review**
- **AI analysis**

### Competitive ranking

- [Leaderboard](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/leaderboard/page.tsx): `app/leaderboard/page.tsx`
- [Rank display](https://github.com/ahmedkhaleel2004/nocra/blob/master/app/components/PlayerCard.tsx): `app/components/PlayerCard.tsx`
- **Combined ranking**

### Other components

- **Student**

## Connections

- Student → Home page: browses (evidence: `app/page.tsx`)
- Student → Course grades: views grades (evidence: `app/grades/page.tsx`)
- Student → Project submissions: views projects (evidence: `app/projects/page.tsx`)
- Student → Leaderboard: views ranks (evidence: `app/leaderboard/page.tsx`)
- Application layout → Site navigation: renders (evidence: `app/layout.tsx`)
- Application layout → Site footer: renders (evidence: `app/layout.tsx`)
- Course grades → Grade scoring: renders (evidence: `app/grades/page.tsx`)
- Project submissions → Project detail: renders (evidence: `app/projects/page.tsx`)
- Project detail → Review feedback: opens (evidence: `app/components/ProjectCard.tsx`)
- Leaderboard → Rank display: renders (evidence: `app/leaderboard/page.tsx`)
- Course grades → Combined ranking: contributes grades (evidence: `README.md`)
- Project submissions → Peer review: receives reviews (evidence: `README.md`)
- Project submissions → AI analysis: receives analysis (evidence: `README.md`)
- Peer review → Combined ranking: contributes score (evidence: `README.md`)
- AI analysis → Combined ranking: contributes score (evidence: `README.md`)
- Combined ranking → Leaderboard: ranks students (evidence: `README.md`)
