How jayasai-06/prepwiseai works
PrepWiseAI is a web application for creating and reviewing AI-assisted interview reports from a resume PDF, self-description, and job description. Users register or log in, then submit interview inputs; the backend parses the resume, generates a report, stores it, and serves report history/details and a downloadable resume PDF. The map also includes authentication and protected access. The README provides no further product description, and several API and infrastructure implementations were not excerpted, so those links are omitted or marked unverified.
Main entry points: app.routes.jsx Page routing · interview.routes.js Interview routes · useAuth.js Auth actions · useInterview.js Interview actions
Components 25
Web application
- Page routing
frontend/src/app.routes.jsx - Login and register
frontend/src/features/auth/pages - Auth actions
frontend/src/features/auth/hooks/useAuth.js - Auth API client
frontend/src/features/auth/services/auth.api.js - Auth state
frontend/src/features/auth/auth.context.jsx - Protected pages
frontend/src/features/auth/components/protected.jsx - Interview dashboard
frontend/src/features/interview/pages/home.jsx - Report view
frontend/src/features/interview/pages/Interview.jsx - Interview actions
frontend/src/features/interview/hooks/useInterview.js - Interview API client
frontend/src/features/interview/services/interview.api.js - Report state
frontend/src/features/interview/interview.context.jsx
Backend API
- HTTP app
backend/src/app.js - Database connection
backend/src/config/database.js - Server startup
backend/server.js
Identity and access
- Auth routes
backend/src/routes/auth.routes.js - Auth controller
backend/src/controllers/auth.controller.js - Token validation
backend/src/middlewares/auth.middleware.js - User records
backend/src/models/user.model.js - Token blacklist
backend/src/models/blacklist.model.js
Interview reports
- Interview routes
backend/src/routes/interview.routes.js - Resume upload
backend/src/middlewares/file.middleware.js - Report controller
backend/src/controllers/interview.controller.js - AI generation
backend/src/services/ai.service.js - Interview reports
backend/src/models/interviewReport.model.js
Other components
- User
Connections 29
- User → Page routing: uses
frontend/src/app.routes.jsx - Page routing → Login and register: routes to
frontend/src/app.routes.jsx - Page routing → Interview dashboard: routes to
frontend/src/app.routes.jsx - Page routing → Report view: routes to
frontend/src/app.routes.jsx - Page routing → Protected pages: guards
frontend/src/app.routes.jsx - Login and register → Auth actions: uses
frontend/src/features/auth/pages/Login.jsx - Auth actions → Auth API client: calls
frontend/src/features/auth/hooks/useAuth.js - Auth actions → Auth state: updates
frontend/src/features/auth/hooks/useAuth.js - Protected pages → Auth actions: checks
frontend/src/features/auth/components/protected.jsx - Interview dashboard → Interview actions: uses
frontend/src/features/interview/pages/home.jsx - 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 → Report state: updates
frontend/src/features/interview/hooks/useInterview.js - Auth API client → Auth routes: requests
- Interview API client → Interview routes: requests
- Server startup → HTTP app: starts
backend/server.js - Server startup → Database connection: connects
backend/server.js - HTTP app → Auth routes: mounts
backend/src/app.js - HTTP app → Interview routes: mounts
backend/src/app.js - Auth routes → Auth controller: dispatches
backend/src/routes/auth.routes.js - Auth routes → Token validation: 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 tokens
backend/src/controllers/auth.controller.js - Token validation → Token blacklist: checks tokens
backend/src/middlewares/auth.middleware.js - Interview routes → Token validation: authenticates
backend/src/routes/interview.routes.js - Interview routes → Resume upload: uploads resume
backend/src/routes/interview.routes.js - Interview routes → Report controller: dispatches
backend/src/routes/interview.routes.js - Report controller → AI generation: generates content
backend/src/controllers/interview.controller.js - Report controller → Interview reports: reads and writes
backend/src/controllers/interview.controller.js