How akshay4754/gapwiseai works
GapWise AI helps a job seeker turn a resume or self-description and a job description into a tailored interview report, then review saved reports and download a tailored resume PDF. The frontend routes users through authentication, report creation, and report history; the backend handles uploads, PDF text extraction, optional RAG retrieval, AI generation, and persistence. The README documents match scores, skill-gap analysis, questions, and a preparation roadmap as report capabilities. Some frontend API and AI-service internals were not excerpted, so unverified HTTP or service links are shown as dashed.
Main entry points: interview.routes.js Interview routes · interview.controller.js Report orchestration · auth.routes.js Auth routes · server.js Express server
Components 21
Frontend experience
- React application
Frontend/src/App.jsx - Page routing
Frontend/src/app.routes.jsx
Identity and access
- Login and register
Frontend/src/features/auth/pages - Auth state and API
Frontend/src/features/auth/hooks/useAuth.js - Auth routes
Backend/src/routes/auth.routes.js - Auth handlers
Backend/src/controllers/auth.controller.js - JWT authorization
Backend/src/middlewares/auth.middleware.js - User and token records
Backend/src/models/user.model.js
Interview preparation
- Interview workspace
Frontend/src/features/interview/pages - Report state and API
Frontend/src/features/interview/hooks/useInterview.js
Backend services
- Interview routes
Backend/src/routes/interview.routes.js - Report orchestration
Backend/src/controllers/interview.controller.js - Resume upload
Backend/src/middlewares/file.middleware.js - Interview report history
Backend/src/models/interviewReport.model.js - MongoDB
- Express server
Backend/server.js
AI and retrieval
- Resume RAG pipeline
Backend/src/services/rag.service.js - AI report and PDF
Backend/src/services/ai.service.js - Google Gemini
- Pinecone vector index
Other components
- Job seeker
Connections 26
- Job seeker → React application: uses
README.md - React application → Page routing: renders
Frontend/src/App.jsx - Page routing → Login and register: routes
Frontend/src/app.routes.jsx - Page routing → Interview workspace: routes
Frontend/src/app.routes.jsx - Login and register → Auth state and API: uses
Frontend/src/features/auth/hooks/useAuth.js - Interview workspace → Report state and API: uses
Frontend/src/features/interview/hooks/useInterview.js - Auth state and API → Auth routes: requests
- Report state and API → Interview routes: requests
- Express server → Auth routes: mounts
- Express server → Interview routes: mounts
- Auth routes → Auth handlers: dispatches
Backend/src/routes/auth.routes.js - Auth routes → JWT authorization: guards
Backend/src/routes/auth.routes.js - Auth handlers → User and token records: reads and writes
Backend/src/controllers/auth.controller.js - JWT authorization → User and token records: checks blacklist
Backend/src/middlewares/auth.middleware.js - Interview routes → JWT authorization: guards
Backend/src/routes/interview.routes.js - Interview routes → Resume upload: accepts resume
Backend/src/routes/interview.routes.js - Interview routes → Report orchestration: dispatches
Backend/src/routes/interview.routes.js - Report orchestration → Resume RAG pipeline: extracts and retrieves
Backend/src/controllers/interview.controller.js - Report orchestration → AI report and PDF: generates report or PDF
Backend/src/controllers/interview.controller.js - Report orchestration → Interview report history: creates and queries
Backend/src/controllers/interview.controller.js - Resume RAG pipeline → Google Gemini: embeds text
Backend/src/services/rag.service.js - Resume RAG pipeline → Pinecone vector index: indexes and searches
Backend/src/services/rag.service.js - AI report and PDF → Google Gemini: generates content
README.md - Express server → MongoDB: connects
README.md - Interview report history → MongoDB: persists reports
README.md - User and token records → MongoDB: persists users
README.md