How kapil1290/genai-project works
Resume Analyser’s implemented workflow is an authenticated resume-to-interview-preparation report: the user submits a PDF resume and descriptions, the backend extracts resume text, requests structured analysis from an AI service, saves the report, and the frontend presents reports and history. The README also describes matching scores, skill gaps, suggestions, and ATS feedback; sampled AI code shows match scoring, questions, skill gaps, and a preparation plan, but not all documented sections. Some frontend-to-backend links are documented rather than visible in sampled API source.
Main entry points: interview.routes.js Report endpoints · app.route.jsx Page routing · auth.route.js Auth endpoints · auth.controller.js Auth handlers
Components 23
User interface
- React app
Frontend/src/App.jsx - Page routing
Frontend/src/app.route.jsx - Login and register
Frontend/src/features/auth/pages/Login.jsx - Report home
Frontend/src/features/interview/pages/Home.jsx - Report detail
Frontend/src/features/interview/pages/Interview.jsx
Authentication
- Auth actions
Frontend/src/features/auth/hooks/useAuth.js - Auth API
Frontend/src/features/auth/services/auth.api.js - Auth endpoints
Backend/src/routes/auth.route.js - Auth handlers
Backend/src/controllers/auth.controller.js - JWT guard
Backend/src/middlewares/auth.middleware.js
Report workflow
- Report actions
Frontend/src/features/interview/hooks/useInterview.js - Report API
Frontend/src/features/interview/services/interview.api.js - Report endpoints
Backend/src/routes/interview.routes.js - Resume upload
Backend/src/middlewares/file.middleware.js - Report handler
Backend/src/controllers/interview.controller.js - AI analysis
Backend/src/services/ai.service.js - Prompt support
Backend/src/services/temp.js - HTTP application
Backend/src/app.js
Persistence
- User records
Backend/src/models/user.model.js - Token blacklist
Backend/src/models/blacklist.model.js - Saved reports
Backend/src/models/interviewReport.model.js - Database connection
Backend/src/db/db.js
Other components
- Candidate
Connections 26
- Candidate → React app: uses
README.md - React app → Page routing: installs routes
Frontend/src/App.jsx - Page routing → Login and register: routes to
Frontend/src/app.route.jsx - Login and register → Auth actions: uses
Frontend/src/features/auth/pages/Login.jsx - Auth actions → Auth API: calls
Frontend/src/features/auth/hooks/useAuth.js - Auth API → Auth endpoints: requests
- HTTP application → Auth endpoints: mounts
Backend/src/app.js - Auth endpoints → Auth handlers: dispatches
Backend/src/routes/auth.route.js - Auth endpoints → JWT guard: guards
Backend/src/routes/auth.route.js - Auth handlers → User records: reads and writes
Backend/src/controllers/auth.controller.js - Auth handlers → Token blacklist: records logout
Backend/src/controllers/auth.controller.js - JWT guard → Token blacklist: checks token
Backend/src/middlewares/auth.middleware.js - Page routing → Report home: routes to
Frontend/src/app.route.jsx - Page routing → Report detail: routes to
Frontend/src/app.route.jsx - Report home → Report actions: uses
Frontend/src/features/interview/pages/Home.jsx - Report detail → Report actions: uses
Frontend/src/features/interview/pages/Interview.jsx - Report actions → Report API: calls
Frontend/src/features/interview/hooks/useInterview.js - Report API → Report endpoints: requests
- HTTP application → Report endpoints: mounts
Backend/src/app.js - Report endpoints → JWT guard: guards
Backend/src/routes/interview.routes.js - Report endpoints → Resume upload: processes upload
Backend/src/routes/interview.routes.js - Report endpoints → Report handler: dispatches
Backend/src/routes/interview.routes.js - Report handler → AI analysis: requests analysis
Backend/src/controllers/interview.controller.js - Report handler → Saved reports: creates and reads
Backend/src/controllers/interview.controller.js - AI analysis → Prompt support: references
Backend/src/services/ai.service.js - Database connection → HTTP application: initializes