How call-0f-code/interview-simulator works
Interview Simulator is a full-stack coding-interview practice platform. Users register or sign in, choose a practice mode, enter a room or practice solo, write and run code, and receive feedback; collaborative rooms add synchronized coding, chat, and interview timing. The platform also exposes interview-performance dashboards and learning resources. The graph separates the browser experience, backend services, and AI feedback service. Some frontend-to-service links are documented at product level rather than visible in sampled request code, so those links are marked as documented or unverified.
Main entry points: App.jsx Web app routes · index.js HTTP and socket server · Interview.jsx Live interview · socket.js Socket client
Components 29
Practice experience
- Web app routes
frontend/src/App.jsx - Account access
frontend/src/pages/Login.jsx - Practice mode
frontend/src/pages/SelectMode.jsx - Room workflow
frontend/src/pages/RoomEntry.jsx - Live interview
frontend/src/pages/Interview.jsx - Code editor
frontend/src/components/InterviewRoom/CodeEditor.jsx - Interview chat
frontend/src/components/InterviewRoom/Chat.jsx - Solo practice
frontend/src/pages/SoloInterview.jsx - AI practice feedback
frontend/src/pages/AIInterview.jsx - Performance dashboard
frontend/src/pages/Dashboard.jsx - Learning resources
frontend/src/pages/Resources.jsx
Backend services
- HTTP API client
frontend/src/services/api.js - Dashboard client
frontend/src/services/dashboardAPI.js - Socket client
frontend/src/services/socket.js - HTTP and socket server
backend/index.js - Authentication routes
backend/routes/Auth.js - Room and collaboration
backend/socket/socketHandler.js - Code execution
backend/utils/executeCode.js - Dashboard calculations
backend/controllers/dashboardController.js - Question and run routes
backend/routes/question.js
Persistence
- User records
backend/models/user.js - Interview records
backend/models/Interview.js - Submission records
backend/models/Submission.js - Question bank
backend/models/Question.js - MongoDB connection
backend/config/db.js
AI feedback
- Python AI service
ai-service/app.py
Other components
- Candidate
- Judge0 execution API
- Email delivery
Connections 37
- Candidate → Web app routes: uses
README.md - Web app routes → Account access: routes to
frontend/src/App.jsx - Web app routes → Practice mode: routes to
frontend/src/App.jsx - Web app routes → Room workflow: routes to
frontend/src/App.jsx - Web app routes → Live interview: routes to
frontend/src/App.jsx - Web app routes → Solo practice: routes to
frontend/src/App.jsx - Web app routes → AI practice feedback: routes to
frontend/src/App.jsx - Web app routes → Performance dashboard: routes to
frontend/src/App.jsx - Web app routes → Learning resources: routes to
frontend/src/App.jsx - Account access → HTTP API client: calls
frontend/src/pages/Login.jsx - Account access → Socket client: connects
frontend/src/pages/Login.jsx - Room workflow → Socket client: uses
frontend/src/pages/RoomEntry.jsx - Live interview → Socket client: uses
frontend/src/pages/Interview.jsx - Live interview → Code editor: renders
frontend/src/pages/Interview.jsx - Live interview → Interview chat: renders
frontend/src/pages/Interview.jsx - Solo practice → Code editor: renders
frontend/src/pages/SoloInterview.jsx - AI practice feedback → Code editor: renders
frontend/src/pages/AIInterview.jsx - AI practice feedback → Python AI service: requests feedback
README.md - Performance dashboard → Dashboard client: fetches data
frontend/src/pages/Dashboard.jsx - Performance dashboard → Dashboard calculations: presents
- Learning resources → Candidate: provides materials
README.md - Socket client → HTTP and socket server: connects
README.md - HTTP API client → HTTP and socket server: requests
- HTTP and socket server → Authentication routes: mounts
backend/index.js - HTTP and socket server → Room and collaboration: dispatches sockets
backend/index.js - Authentication routes → User records: reads and writes
backend/routes/Auth.js - Authentication routes → Email delivery: sends reset code
backend/routes/Auth.js - Room and collaboration → Code execution: runs code
backend/socket/socketHandler.js - Room and collaboration → Submission records: saves submissions
backend/socket/socketHandler.js - Code execution → Judge0 execution API: submits code
backend/utils/executeCode.js - HTTP and socket server → Question and run routes: routes requests
backend/routes/question.js - Question and run routes → Question bank: loads tests
backend/routes/question.js - Question and run routes → Code execution: runs tests
- Dashboard calculations → Interview records: queries interviews
backend/controllers/dashboardController.js - HTTP and socket server → MongoDB connection: connects
backend/index.js - MongoDB connection → Interview records: persists
- Python AI service → MongoDB connection: uses database