How vinay99199/prep-pilot-ai works
PrepPilot is a job-preparation web application: users authenticate, submit a resume or self-description with a job description, then generate, review, revisit, and download job-specific interview plans and customized resumes. The graph follows the visible React route and API layers into Express controllers, AI services, and MongoDB-backed models. README documents additional analysis and resume-generation capabilities; the excerpts show report generation and PDF handling, but do not expose the AI service’s internal stages. Edges are limited to explicit calls, route registrations, and README-stated integrations.
Main entry points: interview.controller.js Report controller · interview.routes.js Interview routes · app.js Express app · app.routes.jsx Page routing
Components 23
Web client
- React app
Frontend/src/App.jsx - Page routing
Frontend/src/app.routes.jsx
Identity
- Auth pages
Frontend/src/features/auth/pages/Login.jsx - Auth actions
Frontend/src/features/auth/hooks/useAuth.js - Auth API client
Frontend/src/features/auth/services/auth.api.js - Auth controller
Backend/src/controllers/auth.controller.js - JWT middleware
Backend/src/middlewares/auth.middleware.js
Interview preparation
- Plan pages
Frontend/src/features/interview/pages/Home.jsx - Plan actions
Frontend/src/features/interview/hooks/useInterview.js - Interview API client
Frontend/src/features/interview/services/interview.api.js - Report controller
Backend/src/controllers/interview.controller.js - AI and PDF service
Backend/src/services/ai.service.js
API runtime
- Express app
Backend/src/app.js - Auth routes
Backend/src/routes/auth.routes.js - Interview routes
Backend/src/routes/interview.routes.js - Resume upload
Backend/src/middlewares/file.middleware.js
Persistent data
- User records
Backend/src/models/user.model.js - Token blacklist
Backend/src/models/blacklist.model.js - Interview reports
Backend/src/models/interviewReport.model.js
Other components
- Job seeker
- MongoDB
- Google Gemini
- Puppeteer
Connections 28
- Job seeker → React app: uses
- React app → Page routing: mounts router
Frontend/src/App.jsx - Page routing → Auth pages: routes to
Frontend/src/app.routes.jsx - Page routing → Plan pages: routes to
Frontend/src/app.routes.jsx - Auth pages → Auth actions: uses actions
Frontend/src/features/auth/pages/Login.jsx - Auth actions → Auth API client: calls
Frontend/src/features/auth/hooks/useAuth.js - Plan pages → Plan actions: uses actions
Frontend/src/features/interview/pages/Home.jsx - Plan actions → Interview API client: calls
Frontend/src/features/interview/hooks/useInterview.js - Auth API client → Express app: sends REST requests
- Interview API client → Express app: sends REST requests
- Express app → Auth routes: mounts at auth
Backend/src/app.js - Express app → Interview routes: mounts at interview
Backend/src/app.js - Auth routes → Auth controller: dispatches
Backend/src/routes/auth.routes.js - Auth routes → JWT middleware: protects routes
Backend/src/routes/auth.routes.js - Auth controller → User records: reads and writes
Backend/src/controllers/auth.controller.js - Auth controller → Token blacklist: blacklists tokens
Backend/src/controllers/auth.controller.js - JWT middleware → Token blacklist: checks tokens
Backend/src/middlewares/auth.middleware.js - Interview routes → JWT middleware: protects routes
Backend/src/routes/interview.routes.js - Interview routes → Resume upload: parses resume upload
Backend/src/routes/interview.routes.js - Interview routes → Report controller: dispatches
Backend/src/routes/interview.routes.js - Report controller → AI and PDF service: generates plan and PDF
Backend/src/controllers/interview.controller.js - Report controller → Interview reports: reads and writes
Backend/src/controllers/interview.controller.js - Report controller → User records: reads and updates limits
Backend/src/controllers/interview.controller.js - User records → MongoDB: persists
- Token blacklist → MongoDB: persists
- Interview reports → MongoDB: persists
- AI and PDF service → Google Gemini: uses AI
README.md - AI and PDF service → Puppeteer: renders PDF
README.md