How machavarapu1977/codenew works
This is a web-based coding assessment platform for students and instructors. Students select or take assessments, submit code for execution and test-case evaluation, and review feedback; instructors manage questions and assessments, with question generation and vector search as supporting capabilities. The frontend calls a FastAPI backend, which coordinates persistence, execution, and assessment services. Edges reflect the shown excerpts and SOURCE INDEX references; several documented or substantial subsystems have limited sampled implementation evidence.
Main entry points: app.py FastAPI application · App.jsx Student workspace · InstructorDashboard.jsx Instructor dashboard · auth.py Authentication and roles
Components 20
Web application
- Student workspace
compiler-project/frontend/src/App.jsx - Instructor dashboard
compiler-project/frontend/src/components/InstructorDashboard.jsx - Evaluation report
compiler-project/frontend/src/components/EvaluationReportModal.jsx - Login screen
compiler-project/frontend/src/components/LoginPage.jsx - Question generator
compiler-project/frontend/src/services/questionAgent.js
API and domain
- FastAPI application
compiler-project/backend/app.py - Authentication and roles
compiler-project/backend/auth.py - API schemas
compiler-project/backend/schemas.py - Assessment data models
compiler-project/backend/models.py - Relational database
compiler-project/backend/database.py
Code evaluation
- Submission evaluation
compiler-project/backend/services/evaluator.py - Diagnostic feedback
compiler-project/backend/services/feedback_service.py - Code execution
compiler-project/backend/services/piston_service.py - Evaluation service
compiler-project/backend/services/evaluation_service.py
Question support
- RAG question generation
compiler-project/backend/services/rag_service.py - Vector indexing and search
compiler-project/backend/services/pinecone_service.py
Other components
- Student
- Instructor
- Piston runtime service
- Groq API
Connections 24
- Student → Student workspace: uses
compiler-project/frontend/src/App.jsx - Instructor → Instructor dashboard: uses
- Student workspace → FastAPI application: calls HTTP API
compiler-project/frontend/src/App.jsx - Student workspace → Instructor dashboard: renders
compiler-project/frontend/src/App.jsx - Student workspace → Evaluation report: renders
compiler-project/frontend/src/App.jsx - Student workspace → Login screen: renders
- Instructor dashboard → Question generator: requests generation
compiler-project/frontend/src/components/InstructorDashboard.jsx - Instructor dashboard → FastAPI application: saves questions
compiler-project/frontend/src/components/InstructorDashboard.jsx - FastAPI application → Authentication and roles: uses authentication
compiler-project/backend/app.py - FastAPI application → API schemas: uses schemas
compiler-project/backend/app.py - FastAPI application → Assessment data models: queries models
compiler-project/backend/app.py - FastAPI application → Relational database: uses sessions
compiler-project/backend/app.py - Authentication and roles → Relational database: opens sessions
compiler-project/backend/auth.py - Authentication and roles → Assessment data models: queries users
compiler-project/backend/auth.py - Assessment data models → Relational database: declares tables
compiler-project/backend/models.py - FastAPI application → Code execution: executes code
compiler-project/backend/app.py - FastAPI application → Submission evaluation: evaluates submissions
compiler-project/backend/app.py - FastAPI application → Diagnostic feedback: generates feedback
compiler-project/backend/app.py - FastAPI application → Vector indexing and search: uses question search
compiler-project/backend/app.py - FastAPI application → RAG question generation: requests generation
compiler-project/backend/app.py - RAG question generation → Vector indexing and search: retrieves references
compiler-project/backend/services/rag_service.py - RAG question generation → Groq API: generates questions
compiler-project/backend/services/rag_service.py - Code execution → Piston runtime service: runs remotely
- FastAPI application → Evaluation service: coordinates evaluation