How adityahar06/ai-interview-repo works
AI Interview Platform takes users from account access through interview setup, timed answers, AI evaluation, and reports, with dashboard and history views for follow-up. The graph includes the documented resume-upload and reporting capabilities. Source excerpts show the main interview controller’s model and AI dependencies, API mappings, and route mounting; some page-to-API and unsampled route behavior is supported by the SOURCE INDEX or README rather than full implementation excerpts.
Main entry points: App.jsx Routes and shell · index.js HTTP API client · interviewController.js Interview handlers · server.js Express server
Components 26
Web application
- Routes and shell
client/src/App.jsx - Dashboard
client/src/pages/Dashboard.jsx - Interview history
client/src/pages/History.jsx
Authentication
- Auth state
client/src/context/AuthContext.jsx - Sign in
client/src/pages/Login.jsx - Registration
client/src/pages/Register.jsx - Auth handlers
server/controllers/authController.js - JWT protection
server/middleware/auth.js
Interview workflow
- Interview setup
client/src/pages/InterviewSetup.jsx - Interview session
client/src/pages/InterviewSession.jsx - Question timer
client/src/hooks/useTimer.js - Results view
client/src/pages/Results.jsx - Interview handlers
server/controllers/interviewController.js - Report handlers
server/controllers/reportController.js
API services
- HTTP API client
client/src/api/index.js - Express server
server/server.js - Auth routes
server/routes/auth.js - Interview routes
server/routes/interview.js - Report routes
server/routes/report.js
Data and AI
- User records
server/models/User.js - Interview records
server/models/Interview.js - Report records
server/models/Report.js - Groq AI service
server/services/groqService.js - MongoDB
Other components
- Candidate
- Groq API
Connections 41
- Candidate → Routes and shell: uses
README.md - Routes and shell → Auth state: provides state
client/src/App.jsx - Routes and shell → Sign in: routes to
client/src/App.jsx - Routes and shell → Registration: routes to
client/src/App.jsx - Routes and shell → Dashboard: routes to
client/src/App.jsx - Routes and shell → Interview setup: routes to
client/src/App.jsx - Routes and shell → Interview session: routes to
client/src/App.jsx - Routes and shell → Results view: routes to
client/src/App.jsx - Routes and shell → Interview history: routes to
client/src/App.jsx - Sign in → HTTP API client: requests auth
client/src/pages/Login.jsx - Registration → HTTP API client: requests auth
client/src/pages/Register.jsx - Auth state → HTTP API client: validates session
client/src/context/AuthContext.jsx - Dashboard → HTTP API client: loads dashboard data
client/src/pages/Dashboard.jsx - Interview setup → HTTP API client: starts interview
client/src/pages/InterviewSetup.jsx - Interview session → Question timer: uses timer
client/src/pages/InterviewSession.jsx - Interview session → HTTP API client: submits answers
client/src/pages/InterviewSession.jsx - Results view → HTTP API client: loads report
client/src/pages/Results.jsx - Interview history → HTTP API client: loads history
client/src/pages/History.jsx - HTTP API client → Express server: sends HTTP requests
client/src/api/index.js - Express server → Auth routes: mounts routes
server/server.js - Express server → Interview routes: mounts routes
server/server.js - Express server → Report routes: mounts routes
server/server.js - Auth routes → Auth handlers: dispatches to
server/routes/auth.js - Auth routes → JWT protection: protects endpoints
server/routes/auth.js - Interview routes → Interview handlers: dispatches to
server/routes/interview.js - Interview routes → JWT protection: protects endpoints
server/routes/interview.js - Report routes → Report handlers: dispatches to
server/routes/report.js - Report routes → JWT protection: protects endpoints
server/routes/report.js - Auth handlers → User records: creates and checks
server/controllers/authController.js - JWT protection → User records: loads user
server/middleware/auth.js - Interview handlers → Interview records: reads and writes
server/controllers/interviewController.js - Interview handlers → User records: updates stats
server/controllers/interviewController.js - Interview handlers → Report records: creates reports
server/controllers/interviewController.js - Interview handlers → Groq AI service: generates and evaluates
server/controllers/interviewController.js - Report handlers → Report records: reads reports
server/controllers/reportController.js - Report handlers → Interview records: populates interview
server/controllers/reportController.js - Groq AI service → Groq API: requests completions
server/services/groqService.js - Interview handlers → MongoDB: persists interview data
- Auth handlers → MongoDB: persists account data
- Interview handlers → MongoDB: persists report data
- Candidate → Interview setup: uploads resume
README.md