How u23ec179/interviewiq works
InterviewIQ is an AI interview-preparation application. Users sign in, configure an interview using resume/profile details, answer generated questions, and review scores and feedback; credits can be replenished through paid plans. The graph preserves the documented interview, history/report, authentication, and payment capabilities. Some client pages and routes are unsampled, so links to backend behavior are shown only where source excerpts establish them.
Main entry points: App.jsx App routing · index.js API server · Auth.jsx Google sign-in · interview.controller.js Interview workflow
Components 25
Client application
- App routing
client/src/App.jsx - Google sign-in
client/src/pages/Auth.jsx - Interview setup
client/src/pages/Home.jsx - Interview session
client/src/pages/InterviewPage.jsx - Interview history
client/src/pages/InterviewHistory.jsx - Interview report
client/src/pages/InterviewReport.jsx - Pricing plans
client/src/pages/Pricing.jsx - User state
client/src/redux/userSlice.js
Interview services
- Interview routes
server/routes/interview.route.js - Interview workflow
server/controllers/interview.controller.js - AI question and feedback
server/services/openRouter.services.js - Interview records
server/models/interview.model.js
Identity and data
- Firebase auth
client/src/utils/firebase.js - API server
server/index.js - Auth routes
server/routes/auth.route.js - User routes
server/routes/user.route.js - Google account handling
server/controllers/auth.controller.js - User and credits
server/models/user.model.js
Credits and payments
- Payment routes
server/routes/payment.route.js - Payment and credit grants
server/controllers/payment.controller.js - Payment records
server/models/payment.model.js
Other components
- Candidate
- Razorpay
- OpenRouter AI
- MongoDB
Connections 27
- Candidate → App routing: uses
client/src/App.jsx - App routing → Interview setup: routes to
client/src/App.jsx - App routing → Google sign-in: routes to
client/src/App.jsx - App routing → Interview session: routes to
client/src/App.jsx - App routing → Interview history: routes to
client/src/App.jsx - App routing → Interview report: routes to
client/src/App.jsx - App routing → Pricing plans: routes to
client/src/App.jsx - Google sign-in → Firebase auth: signs in with
client/src/pages/Auth.jsx - Google sign-in → Auth routes: posts credentials
client/src/pages/Auth.jsx - App routing → User routes: fetches current user
client/src/App.jsx - Google sign-in → User state: updates
client/src/pages/Auth.jsx - App routing → User state: updates
client/src/App.jsx - API server → Auth routes: mounts
server/index.js - API server → User routes: mounts
server/index.js - API server → Interview routes: mounts
server/index.js - API server → Payment routes: mounts
server/index.js - Interview routes → Interview workflow: dispatches to
server/routes/interview.route.js - Interview workflow → AI question and feedback: requests AI
server/controllers/interview.controller.js - AI question and feedback → OpenRouter AI: calls
server/services/openRouter.services.js - Interview workflow → Interview records: reads and writes
server/controllers/interview.controller.js - Interview workflow → User and credits: checks credits
server/controllers/interview.controller.js - Google account handling → User and credits: finds or creates
server/controllers/auth.controller.js - Payment routes → Payment and credit grants: dispatches to
server/routes/payment.route.js - Payment and credit grants → Razorpay: creates orders
server/controllers/payment.controller.js - Payment and credit grants → Payment records: creates and updates
server/controllers/payment.controller.js - Payment and credit grants → User and credits: grants credits
server/controllers/payment.controller.js - API server → MongoDB: connects database
server/index.js