How pransu2308/interviewiq works
InterviewIQ is a React/MERN interview-preparation product. Users authenticate, configure a practice session (including resume analysis), receive AI-generated questions, submit timed answers, and review scored reports; they can also browse history and purchase credits. The graph captures documented UI routing and sampled backend calls. Some frontend API wiring and unsampled route/controller details are not shown, so their links are omitted rather than inferred.
Main entry points: App.jsx Application routes · index.js Express API · user.model.js User records · InterviewPage.jsx Interview workflow
Components 32
Web experience
- Application routes
client/src/App.jsx - Home and navigation
client/src/pages/Home.jsx
Identity and profiles
- Authentication UI
client/src/pages/Auth.jsx - Auth modal
client/src/components/AuthModel.jsx - User state
client/src/redux/userSlice.js - Auth routes
server/routes/auth.route.js - Authentication
server/controllers/auth.controller.js - User routes
server/routes/user.route.js - Profile lookup
server/controllers/user.controller.js - JWT guard
server/middlewares/isAuth.js
Interview practice
- Session setup
client/src/components/Step1SetUp.jsx - Live interview
client/src/components/Step2Interview.jsx - Answer timer
client/src/components/Timer.jsx - Interview report
client/src/components/Step3Report.jsx - Interview workflow
client/src/pages/InterviewPage.jsx - Interview history
client/src/pages/InterviewHistory.jsx - Report page
client/src/pages/InterviewReport.jsx - Interview routes
server/routes/interview.route.js - Interview operations
server/controllers/interview.controller.js - OpenRouter service
server/services/openRouter.service.js
Credits and payments
- Plans and credits
client/src/pages/Pricing.jsx - Payment routes
server/routes/payment.route.js - Payment operations
server/controllers/payment.controller.js - Razorpay service
server/services/razorpay.service.js
API and persistence
- Express API
server/index.js - User records
server/models/user.model.js - Interview records
server/models/interview.model.js - Payment records
server/models/payment.model.js
Other components
- Interview candidate
- MongoDB
- OpenRouter API
- Razorpay
Connections 40
- Interview candidate → Application routes: uses
client/src/App.jsx - Application routes → Home and navigation: routes to
client/src/App.jsx - Application routes → Authentication UI: routes to
client/src/App.jsx - Application routes → Interview workflow: routes to
client/src/App.jsx - Application routes → Interview history: routes to
client/src/App.jsx - Application routes → Plans and credits: routes to
client/src/App.jsx - Application routes → Report page: routes to
client/src/App.jsx - Home and navigation → Auth modal: opens
client/src/pages/Home.jsx - Auth modal → Authentication UI: renders
client/src/components/AuthModel.jsx - Application routes → User state: dispatches user
client/src/App.jsx - Application routes → Express API: requests current user
client/src/App.jsx - Interview workflow → Session setup: renders
client/src/pages/InterviewPage.jsx - Interview workflow → Live interview: renders
client/src/pages/InterviewPage.jsx - Interview workflow → Interview report: renders
client/src/pages/InterviewPage.jsx - Live interview → Answer timer: uses
client/src/components/Step2Interview.jsx - Report page → Interview report: renders
client/src/pages/InterviewReport.jsx - Express API → Auth routes: mounts
server/index.js - Express API → User routes: mounts
server/index.js - Express API → Interview routes: mounts
server/index.js - Express API → Payment routes: mounts
server/index.js - Auth routes → Authentication: dispatches to
server/routes/auth.route.js - User routes → JWT guard: guards
server/routes/user.route.js - User routes → Profile lookup: dispatches to
server/routes/user.route.js - Interview routes → JWT guard: guards
server/routes/interview.route.js - Interview routes → Interview operations: dispatches to
server/routes/interview.route.js - Payment routes → JWT guard: guards
server/routes/payment.route.js - Payment routes → Payment operations: dispatches to
server/routes/payment.route.js - Authentication → User records: reads and writes
server/controllers/auth.controller.js - Profile lookup → User records: reads
server/controllers/user.controller.js - Interview operations → User records: reads and updates
server/controllers/interview.controller.js - Interview operations → Interview records: creates and updates
server/controllers/interview.controller.js - Interview operations → OpenRouter service: requests analysis
server/controllers/interview.controller.js - OpenRouter service → OpenRouter API: sends prompts
server/services/openRouter.service.js - Payment operations → Payment records: creates and updates
server/controllers/payment.controller.js - Payment operations → User records: adds credits
server/controllers/payment.controller.js - Payment operations → Razorpay service: creates orders
server/controllers/payment.controller.js - Razorpay service → Razorpay: submits order
server/services/razorpay.service.js - User records → MongoDB: persists
- Interview records → MongoDB: persists
- Payment records → MongoDB: persists