How aashay205/prepwise-ai-interview-prep-assistant works
Prepwise is an AI interview-preparation platform. Users register or log in, submit a job description with a resume or self-description, review a generated interview report, and can practice mock answers, view saved reports and study resources, or generate an improved resume PDF. The graph separates the frontend experience, API/authentication, report and practice workflows, AI services, and persistence. README statements support documented capabilities and integrations; source excerpts and the index support the shown routing and controller calls. Some frontend-to-API wiring is documented at product level rather than shown in excerpts.
Main entry points: app.routes.jsx App routes · interview.controller.js Interview controller · auth.routes.js Auth routes · auth.controller.js Auth controller
Components 23
Frontend experience
- App routes
Frontend/src/app.routes.jsx - Landing page
Frontend/src/features/landing/Landing.jsx
Authentication
- Login and registration
Frontend/src/features/auth/pages/Login.jsx - Auth state and hook
Frontend/src/features/auth/hooks/useAuth.js - Auth API client
Frontend/src/features/auth/services/auth.api.js
Interview workflows
- Interview workspace
Frontend/src/features/interview/pages/Home.jsx - Report review
Frontend/src/features/interview/pages/Interview.jsx - Mock interview
Frontend/src/features/interview/pages/MockInterview.jsx - Interview state and hook
Frontend/src/features/interview/hooks/useInterview.js - Interview API client
Frontend/src/features/interview/services/interview.api.js
Backend API
- Auth routes
Backend/src/routes/auth.routes.js - Auth controller
Backend/src/controllers/auth.controller.js - Auth middleware
Backend/src/middlewares/auth.middleware.js - Interview routes
Backend/src/routes/interview.routes.js - Interview controller
Backend/src/controllers/interview.controller.js
AI and persistence
- User records
Backend/src/models/user.model.js - Token blacklist
Backend/src/models/blacklist.model.js - AI generation and feedback
Backend/src/services/ai.service.js - Interview reports
Backend/src/models/interviewReport.model.js - Mock sessions
Backend/src/models/mockInterviewSession.model.js
Other components
- Visitor / user
- MongoDB
- Google Gemini
Connections 28
- Visitor / user → App routes: uses
README.md - App routes → Landing page: routes to
Frontend/src/app.routes.jsx - App routes → Login and registration: routes to
Frontend/src/app.routes.jsx - App routes → Interview workspace: protects route
Frontend/src/app.routes.jsx - App routes → Report review: protects route
Frontend/src/app.routes.jsx - App routes → Mock interview: protects route
Frontend/src/app.routes.jsx - Login and registration → Auth state and hook: uses
Frontend/src/features/auth/hooks/useAuth.js - Auth state and hook → Auth API client: calls
Frontend/src/features/auth/hooks/useAuth.js - Auth API client → Auth routes: requests auth
README.md - Auth routes → Auth controller: dispatches
Backend/src/routes/auth.routes.js - Auth routes → Auth middleware: authenticates
Backend/src/routes/auth.routes.js - Auth controller → User records: reads and writes
Backend/src/controllers/auth.controller.js - Auth controller → Token blacklist: blacklists token
Backend/src/controllers/auth.controller.js - Interview workspace → Interview state and hook: uses
Frontend/src/features/interview/hooks/useInterview.js - Report review → Interview state and hook: uses
Frontend/src/features/interview/hooks/useInterview.js - Mock interview → Interview API client: requests practice
Frontend/src/features/interview/pages/MockInterview.jsx - Interview state and hook → Interview API client: calls
Frontend/src/features/interview/hooks/useInterview.js - Interview API client → Interview routes: requests interviews
README.md - Interview routes → Auth middleware: authenticates
Backend/src/routes/interview.routes.js - Interview routes → Interview controller: dispatches
Backend/src/routes/interview.routes.js - Interview controller → AI generation and feedback: generates and evaluates
Backend/src/controllers/interview.controller.js - Interview controller → Interview reports: reads and writes
Backend/src/controllers/interview.controller.js - Interview controller → Mock sessions: saves sessions
Backend/src/controllers/interview.controller.js - AI generation and feedback → Google Gemini: uses AI
README.md - User records → MongoDB: persists in
README.md - Token blacklist → MongoDB: persists in
README.md - Interview reports → MongoDB: persists in
README.md - Mock sessions → MongoDB: persists in
README.md