How areebasaleem95/interview-buddy works
Interview Buddy supports authenticated users through interview setup, question delivery, answer evaluation, completion, and results review, alongside account/profile and question-management capabilities. The backend exposes these capabilities through Express routes and controllers, with MongoDB models for persisted state and an AI service for interview tasks. Frontend page-to-route links and several backend calls are evidenced by excerpts or the SOURCE INDEX; connections to the separate Python AI service and frontend-to-API calls are not shown directly, so those links are marked unverified.
Main entry points: App.jsx App routes · app.js API application · interviewController.js Interview workflow · User.js User records
Components 27
User application
- App routes
frontend/src/App.jsx - Login and registration
frontend/src/pages/LoginPage.jsx - Interview dashboard
frontend/src/pages/DashboardPage.jsx - Interview setup
frontend/src/pages/StartInterviewPage.jsx - Live interview
frontend/src/pages/InterviewPage.jsx - Results review
frontend/src/pages/ResultsPage.jsx - User profile
frontend/src/pages/ProfilePage.jsx - Session context
frontend/src/context/AuthContext.jsx
API and access
- Authentication routes
backend/routes/authRoutes.js - Interview routes
backend/routes/interviewRoutes.js - Question routes
backend/routes/questionRoutes.js - Result routes
backend/routes/resultRoutes.js - User routes
backend/routes/userRoutes.js - API application
backend/app.js
Interview domain
- Interview workflow
backend/controllers/interviewController.js - Interview records
backend/models/Interview.js - Result management
backend/controllers/resultController.js - Interview results
backend/models/Result.js
Accounts and content
- Question management
backend/controllers/questionController.js - Question bank
backend/models/Question.js - Authentication
backend/controllers/authController.js - User management
backend/controllers/userController.js - User records
backend/models/User.js
Runtime services
- AI integration
backend/services/aiService.js - AI service runtime
ai_service/main.py
Other components
- Candidate
- MongoDB
Connections 35
- Candidate → App routes: uses
frontend/src/App.jsx - App routes → Login and registration: routes to
frontend/src/App.jsx - App routes → Interview dashboard: routes to
frontend/src/App.jsx - App routes → Interview setup: routes to
frontend/src/App.jsx - App routes → Live interview: routes to
frontend/src/App.jsx - App routes → Results review: routes to
frontend/src/App.jsx - App routes → User profile: routes to
frontend/src/App.jsx - Session context → Login and registration: provides session
- App routes → API application: calls API
- API application → Authentication routes: mounts
backend/app.js - API application → Interview routes: mounts
backend/app.js - API application → Question routes: mounts
backend/app.js - API application → Result routes: mounts
backend/app.js - API application → User routes: mounts
backend/app.js - Authentication routes → Authentication: dispatches
backend/routes/authRoutes.js - Interview routes → Interview workflow: dispatches
backend/routes/interviewRoutes.js - Question routes → Question management: dispatches
backend/routes/questionRoutes.js - Result routes → Result management: dispatches
backend/routes/resultRoutes.js - User routes → User management: dispatches
backend/routes/userRoutes.js - Interview workflow → AI integration: requests evaluation
backend/controllers/interviewController.js - Interview workflow → Question bank: loads questions
backend/controllers/interviewController.js - Interview workflow → Interview records: stores interviews
backend/controllers/interviewController.js - Interview workflow → Interview results: creates results
backend/controllers/interviewController.js - Interview workflow → User records: updates stats
backend/controllers/interviewController.js - Authentication → User records: reads and writes
backend/controllers/authController.js - User management → User records: manages users
backend/controllers/userController.js - Question management → Question bank: manages questions
backend/controllers/questionController.js - Result management → Interview records: reads interviews
backend/controllers/resultController.js - Result management → Interview results: reads results
backend/controllers/resultController.js - App routes → Session context: mounts providers
frontend/src/main.jsx - AI integration → AI service runtime: may call
- Interview records → MongoDB: persists
- Question bank → MongoDB: persists
- Interview results → MongoDB: persists
- User records → MongoDB: persists