How chintan616/interview-iq works
InterviewIQ is an AI mock-interview platform. Its main workflow is to authenticate, configure an interview (optionally using resume details), answer generated questions, and review a scored report; users can also revisit interview history and buy credits. The graph preserves these documented capabilities, but client interview and payment request wiring is not shown in the sampled source, so those links are not asserted. The interview controller does show AI evaluation and interview persistence; some subsystem paths point to exact directories because their implementation was not sampled.
Main entry points: App.jsx Client router · index.js Express API · user.model.js User records · Auth.jsx Sign-in
Components 28
Interview experience
- Client router
client/src/App.jsx - Sign-in
client/src/pages/Auth.jsx - Interview setup
client/src/pages/InterviewPage.jsx - Interview history
client/src/pages/InterviewHistory.jsx - Performance report
client/src/pages/InterviewReport.jsx - Credit plans
client/src/pages/Pricing.jsx - User state
client/src/redux/userSlice.js
Application API
- Express API
server/index.js - Auth routes
server/routes/auth.route.js - User routes
server/routes/user.route.js - Interview routes
server/routes/interview.route.js - Payment routes
server/routes/payment.route.js - Authentication
server/controllers/auth.controller.js - Current user
server/controllers/user.controller.js - Payment processing
server/controllers/payment.controller.js - JWT guard
server/middlewares/isAuth.js
Interview domain
- Interview lifecycle
server/controllers/interview.controller.js - User records
server/models/user.model.js - Interview records
server/models/interview.model.js - Payment records
server/models/payment.model.js - Resume analysis
server/controllers/interview.controller.js
External services
- Firebase Auth
client/src/utils/firebase.js - AI requests
server/services/openRouter.service.js - OpenRouter
- Razorpay client
server/services/razorpay.service.js - Razorpay
- MongoDB
Other components
- Candidate
Connections 29
- Candidate → Client router: uses
- Client router → Sign-in: routes to
- Client router → Interview setup: routes to
- Client router → Interview history: routes to
- Client router → Performance report: routes to
- Client router → Credit plans: routes to
- Sign-in → Firebase Auth: authenticates with
- Sign-in → Express API: posts sign-in
- Sign-in → User state: updates
- Client router → Express API: loads current user
- Express API → Auth routes: dispatches
- Express API → User routes: dispatches
- Express API → Interview routes: dispatches
- Express API → Payment routes: dispatches
- Authentication → User records: reads and creates
- Current user → User records: reads
- Interview lifecycle → User records: reads and updates
- Interview lifecycle → Interview records: creates and updates
- Interview lifecycle → AI requests: requests generation and scoring
- AI requests → OpenRouter: sends prompts
- Resume analysis → AI requests: requests analysis
- Payment processing → Razorpay client: creates orders
- Razorpay client → Razorpay: requests orders
- Payment processing → Payment records: creates and updates
- Payment processing → User records: adds credits
- JWT guard → Express API: protects requests
- User records → MongoDB: persists in
- Interview records → MongoDB: persists in
- Payment records → MongoDB: persists in