How shreya22-prog/interview-ai-yt works
Interview AI is a candidate-facing platform for account access and AI-assisted interview preparation. A candidate registers or signs in, submits a job description with a PDF resume or self-description, and receives a tailored report; they can revisit report history and export a resume PDF. The client routes requests through the REST API, where authentication and upload handling precede report generation and persistence. The README documents Gemini analysis, structured report contents, and PDF export. Connections for unsampled client API and export implementation are based on README documentation, not inspected source.
Main entry points: interview.controller.js Report operations · interview.routes.js Interview routes · auth.controller.js Account operations · app.routes.jsx App routing
Components 22
React application
- App routing
Frontend/src/app.routes.jsx - Login and register
Frontend/src/features/auth/pages - Auth state and actions
Frontend/src/features/auth/hooks/useAuth.js - Auth API client
Frontend/src/features/auth/services/auth.api.js - Interview screens
Frontend/src/features/interview/pages - Interview state and actions
Frontend/src/features/interview/hooks/useInterview.js - Interview API client
Frontend/src/features/interview/services/interview.api.js
REST API
- Auth routes
Backend/src/routes/auth.routes.js - Interview routes
Backend/src/routes/interview.routes.js - JWT auth guard
Backend/src/middlewares/auth.middleware.js - Resume upload
Backend/src/middlewares/file.middleware.js - Account operations
Backend/src/controllers/auth.controller.js - Report operations
Backend/src/controllers/interview.controller.js - PDF text extraction
Backend/src/controllers/interview.controller.js
AI preparation
- Report and resume generation
Backend/src/services/ai.service.js - Resume PDF rendering
Backend/src/services
Persistence
- User records
Backend/src/models/user.model.js - Interview reports
Backend/src/models/interviewReport.model.js - Token blacklist
Backend/src/models/blacklist.model.js
Other components
- Candidate
- Google Gemini
- MongoDB
Connections 28
- Candidate → App routing: uses
README.md - App routing → Login and register: routes to
Frontend/src/app.routes.jsx - App routing → Interview screens: routes to
Frontend/src/app.routes.jsx - Candidate → Login and register: submits credentials
README.md - Login and register → Auth state and actions: uses
Frontend/src/features/auth/hooks/useAuth.js - Auth state and actions → Auth API client: calls
Frontend/src/features/auth/hooks/useAuth.js - Auth API client → Auth routes: requests
README.md - Auth routes → Account operations: dispatches
Backend/src/routes/auth.routes.js - Auth routes → JWT auth guard: guards profile lookup
Backend/src/routes/auth.routes.js - Account operations → User records: reads and writes
Backend/src/controllers/auth.controller.js - Account operations → Token blacklist: blacklists tokens
Backend/src/controllers/auth.controller.js - JWT auth guard → Token blacklist: checks tokens
Backend/src/middlewares/auth.middleware.js - Interview screens → Interview state and actions: uses
Frontend/src/features/interview/hooks/useInterview.js - Interview state and actions → Interview API client: calls
Frontend/src/features/interview/hooks/useInterview.js - Candidate → Interview screens: provides profile and role
README.md - Interview API client → Interview routes: requests
README.md - Interview routes → JWT auth guard: authenticates
Backend/src/routes/interview.routes.js - Interview routes → Resume upload: parses upload
Backend/src/routes/interview.routes.js - Interview routes → Report operations: dispatches
Backend/src/routes/interview.routes.js - Report operations → PDF text extraction: extracts resume text
Backend/src/controllers/interview.controller.js - Report operations → Report and resume generation: requests report
Backend/src/controllers/interview.controller.js - Report and resume generation → Google Gemini: generates analysis
README.md - Report operations → Interview reports: stores and retrieves
Backend/src/controllers/interview.controller.js - Account operations → MongoDB: persists account state
- Report operations → MongoDB: persists reports
- Report operations → Resume PDF rendering: requests PDF
README.md - Resume PDF rendering → Candidate: downloads tailored PDF
README.md - Interview reports → MongoDB: stored in
README.md