How darshan-beep/ai-interview-planner works
This is a resume-based interview-preparation application: users register or sign in, submit a resume with candidate and job descriptions, and receive saved interview-preparation reports that they can revisit or export as a tailored PDF. The graph separates browser flows, API routing and authentication, report generation, and persistence. Source excerpts establish most backend calls; frontend-to-backend links are shown as unverified because the API service implementations were not excerpted.
Main entry points: app.routes.jsx App routes · interviewrouter.js Interview routes · App.jsx App providers · use.auth.js Auth actions
Components 27
Browser application
- App providers
frontend/src/App.jsx - App routes
frontend/src/app.routes.jsx
Identity and access
- Auth state
frontend/src/features/auth/auth.context.jsx - Auth actions
frontend/src/features/auth/hooks/use.auth.js - Login
frontend/src/features/auth/pages/Login.jsx - Registration
frontend/src/features/auth/pages/Register.jsx - Auth API client
frontend/src/features/auth/services/auth.api.js - Protected routes
frontend/src/features/auth/components/protected.jsx
Interview preparation
- Interview home
frontend/src/features/interview/pages/Home.jsx - Interview report view
frontend/src/features/interview/pages/interview.jsx - Interview actions
frontend/src/features/interview/hooks/useinterview.js - Interview state
frontend/src/features/interview/interview.context.jsx - Interview API client
frontend/src/features/interview/services/interview.api.js
Backend API
- Express application
backend/src/app.js - Auth routes
backend/src/routes/auth.routes.js - Interview routes
backend/src/routes/interviewrouter.js - Token validation
backend/src/middleware/auth.middleware.js - Account operations
backend/src/controller/auth.controller.js - User records
backend/src/models/user.model.js - Token blacklist
backend/src/models/blacklist.model.js - Resume upload
backend/src/middleware/filemiddleware.js
Report generation
- Report operations
backend/src/controller/interviewcontroller.js - AI report and PDF
backend/src/services/ai.services.js - Interview reports
backend/src/models/interviewreport.model.js
Other components
- Candidate
- Google Gemini
- Puppeteer renderer
Connections 32
- Candidate → App providers: uses
- App providers → App routes: renders
frontend/src/App.jsx - App providers → Auth state: provides state
frontend/src/App.jsx - App providers → Interview state: provides state
frontend/src/App.jsx - App routes → Login: routes to
frontend/src/app.routes.jsx - App routes → Registration: routes to
frontend/src/app.routes.jsx - App routes → Protected routes: guards pages
frontend/src/app.routes.jsx - App routes → Interview home: routes to
frontend/src/app.routes.jsx - App routes → Interview report view: routes to
frontend/src/app.routes.jsx - Auth actions → Auth state: reads state
frontend/src/features/auth/hooks/use.auth.js - Auth actions → Auth API client: calls
frontend/src/features/auth/hooks/use.auth.js - Registration → Auth actions: uses
frontend/src/features/auth/pages/Register.jsx - Login → Auth actions: uses
- Auth API client → Auth routes: HTTP requests
- Interview report view → Interview actions: uses
frontend/src/features/interview/pages/interview.jsx - Interview actions → Interview API client: calls
frontend/src/features/interview/hooks/useinterview.js - Interview actions → Interview state: updates state
frontend/src/features/interview/hooks/useinterview.js - Interview API client → Interview routes: HTTP requests
- Express application → Auth routes: mounts
backend/src/app.js - Express application → Interview routes: mounts
backend/src/app.js - Auth routes → Account operations: dispatches
backend/src/routes/auth.routes.js - Auth routes → Token validation: guards identity lookup
backend/src/routes/auth.routes.js - Interview routes → Token validation: guards requests
backend/src/routes/interviewrouter.js - Interview routes → Resume upload: processes resume
backend/src/routes/interviewrouter.js - Interview routes → Report operations: dispatches
backend/src/routes/interviewrouter.js - Account operations → User records: reads and writes
backend/src/controller/auth.controller.js - Account operations → Token blacklist: records logout token
backend/src/controller/auth.controller.js - Token validation → Token blacklist: checks token
backend/src/middleware/auth.middleware.js - Report operations → AI report and PDF: generates report or PDF
backend/src/controller/interviewcontroller.js - Report operations → Interview reports: reads and writes
backend/src/controller/interviewcontroller.js - AI report and PDF → Google Gemini: generates content
backend/src/services/ai.services.js - AI report and PDF → Puppeteer renderer: renders PDF
backend/src/services/ai.services.js