How krutik0806/assessment-hub works
Assessment Hub lets learners authenticate, choose a test, take it in practice or proctored exam mode, and review results; admins manage tests, users, and question imports. The React app calls Django APIs, whose views coordinate serializers, domain records, analytics, and PDF extraction. The README documents broader capabilities than the sampled implementation excerpts; those branches are included where paths and relationships are supported, with evidence limits reflected in omitted or dashed edges.
Main entry points: App.jsx App Workflow · views.py API Endpoints · api.js API Client · AuthPage.jsx Sign-in UI
Components 20
Learner Experience
- App Workflow
src/App.jsx - Sign-in UI
src/components/AuthPage.jsx - Test Catalog
src/components/Home.jsx - Quiz Session
src/components/Quiz.jsx - Exam Proctor
src/components/ExamProctor.jsx - Results Review
src/components/Results.jsx - Leaderboard
src/components/Leaderboard.jsx - API Client
src/api.js
Assessment Services
- API Endpoints
backend/quiz/views.py - API Serializers
backend/quiz/serializers.py - PDF Extraction
backend/quiz/pdf_extractor.py
Assessment Records
- Assessment Records
backend/quiz/models.py - Question Loader
backend/quiz/management/commands/load_questions.py
Administration
- Admin Console
src/components/AdminPage.jsx - Django Admin
backend/quiz/admin.py
Identity and Integrity
- Auth and Tokens
backend/quiz/views.py - Proctoring Controls
backend/quiz/models.py
Other components
- Learner
- Google OAuth
- AI Providers
Connections 30
- Learner → App Workflow: uses
src/App.jsx - App Workflow → Sign-in UI: renders
src/App.jsx - App Workflow → Test Catalog: renders
src/App.jsx - App Workflow → Quiz Session: renders
src/App.jsx - App Workflow → Exam Proctor: wraps exam
src/App.jsx - App Workflow → Results Review: renders
src/App.jsx - App Workflow → Leaderboard: renders
src/App.jsx - Sign-in UI → API Client: authenticates via
src/components/AuthPage.jsx - App Workflow → API Client: loads identity
src/App.jsx - Test Catalog → API Client: requests tests
- Quiz Session → App Workflow: finishes session
src/App.jsx - App Workflow → API Endpoints: submits attempt
src/App.jsx - API Client → API Endpoints: calls API
src/api.js - API Endpoints → API Serializers: serializes responses
backend/quiz/views.py - API Endpoints → Assessment Records: reads and writes
backend/quiz/views.py - API Serializers → Assessment Records: serializes records
backend/quiz/serializers.py - API Endpoints → PDF Extraction: extracts questions
backend/quiz/views.py - PDF Extraction → AI Providers: AI fallback
- Admin Console → API Client: calls API
- Admin Console → API Endpoints: manages tests
- Admin Console → PDF Extraction: imports PDFs
- Django Admin → Assessment Records: administers
backend/quiz/admin.py - Question Loader → Assessment Records: seeds questions
backend/quiz/management/commands/load_questions.py - API Endpoints → Auth and Tokens: handles auth
backend/quiz/views.py - Sign-in UI → Google OAuth: gets user info
src/components/AuthPage.jsx - Sign-in UI → API Endpoints: exchanges identity
src/components/AuthPage.jsx - Exam Proctor → API Endpoints: reports violations
- API Endpoints → Proctoring Controls: tracks violations
backend/quiz/views.py - Leaderboard → API Client: loads rankings
- Results Review → API Client: loads review