How cs3227-2610-mp4-codeleet/cs3227-2610-mp4 works
CodeLeet is an authenticated learning platform for programming courses. Students join a course, work on assignments, run Python or Java code in the browser, submit revisions, and follow grades and progress; instructors author assignments and practice cases, review submissions, and publish grades. Course discussions, XP, leaderboards, and role-specific AI assistance are distinct product branches. The graph combines README-described capabilities with relationships visible in sampled source and the SOURCE INDEX; unsampled subsystems are represented without speculative internal links.
Main entry points: verified-user.ts Verified identity · assignments/route.ts Assignment service · submissions/route.ts Submission service · workspace-shell.tsx Student assignment workspace
Components 22
Courses and access
- Course workspaces
src/features/course-workspaces/course-workspace.tsx - Course services
src/features/course-workspaces/http.ts - Membership and features
src/lib/courses/access.ts
Programming and assessment
- Assignment authoring
src/app/courses/[courseId]/assignments/new/page.tsx - Assignment service
src/app/api/assignments/route.ts - Assignment contracts
src/features/codementor/contracts.ts - Student assignment workspace
src/features/student-assignments/workspace-shell.tsx - Browser code runner
src/features/student-submissions/browser-client.ts - Draft recovery
src/features/student-submissions/draft-storage.ts - Submission service
src/app/api/submissions/route.ts - Practice tests
src/features/practice-test-authoring/routes.ts - Grades and publication
src/app/api/grades/[id]/route.ts
AI assistance
- AI review service
src/features/codementor/review-service.ts - SoCLaaS model service
src/lib/ai/soclaas.ts - AI review routes
src/lib/ai/review-route.ts
Progress and community
- Course discussions
src/features/forums/components.tsx - Student progress
src/features/student-progress/components.tsx - XP and leaderboard
src/features/leaderboard/queries.server.ts
Identity and services
- Account access
src/app/sign-in/page.tsx - Verified identity
src/lib/auth/verified-user.ts - Supabase service
src/lib/supabase/server.ts
Other components
- Student or instructor
Connections 29
- Student or instructor → Account access: signs in
README.md - Account access → Verified identity: verifies account
- Verified identity → Supabase service: creates client
src/lib/auth/verified-user.ts - Student or instructor → Course workspaces: enters courses
README.md - Course workspaces → Course services: uses course services
src/features/course-workspaces/http.ts - Course services → Verified identity: verifies user
src/features/course-workspaces/http.ts - Course services → Supabase service: reads and updates
src/features/course-workspaces/http.ts - Assignment authoring → Assignment service: saves assignment
README.md - Assignment service → Verified identity: verifies user
src/app/api/assignments/route.ts - Assignment service → Membership and features: checks access
src/app/api/assignments/route.ts - Assignment service → Assignment contracts: validates input
src/app/api/assignments/route.ts - Assignment service → Supabase service: reads and saves
src/app/api/assignments/route.ts - Student or instructor → Student assignment workspace: works on assignment
README.md - Student assignment workspace → Browser code runner: runs code
- Student assignment workspace → Draft recovery: recovers drafts
- Student assignment workspace → Submission service: submits solution
README.md - Submission service → Verified identity: verifies user
src/app/api/submissions/route.ts - Submission service → Membership and features: checks access
src/app/api/submissions/route.ts - Submission service → Assignment contracts: validates submission
src/app/api/submissions/route.ts - Submission service → Supabase service: stores revision
src/app/api/submissions/route.ts - Assignment authoring → Practice tests: authors practice cases
README.md - Student or instructor → Grades and publication: reviews and publishes
README.md - Student or instructor → AI review routes: requests assistance
README.md - AI review routes → Verified identity: verifies user
src/lib/ai/review-route.ts - AI review routes → AI review service: dispatches review
src/lib/ai/review-route.ts - AI review service → SoCLaaS model service: requests completion
src/features/codementor/review-service.ts - Student or instructor → Course discussions: discusses coursework
README.md - Student or instructor → Student progress: checks progress
README.md - Student or instructor → XP and leaderboard: checks XP ranking
README.md