How sanoj-936/resumatch works
ResuMatch turns a resume or self-description and a job description into a saved interview strategy, then supports report review, topic study and quizzes, progress tracking, and tailored resume PDF downloads. The principal path runs from the authenticated React dashboard through interview API routes and controllers to Gemini and report persistence; subsequent study and download actions reuse saved reports. The graph combines sampled call sites with README-documented capabilities and architecture; unsampled internals, including PDF rendering, are represented only where documented.
Main entry points: interview.controller.js Interview controller · app.js Express app · ai.service.js AI generation service · useInterview.js Interview workflow
Components 23
Frontend
- Login and register
Frontend/src/features/auth/pages/Register.jsx - Auth logic
Frontend/src/features/auth/hooks/useAuth.js - Auth API client
Frontend/src/features/auth/services/auth.api.js - Protected routes
Frontend/src/features/auth/components/Protected.jsx - Reports dashboard
Frontend/src/features/interview/pages/Home.jsx - Report viewer
Frontend/src/features/interview/pages/Interview.jsx - Study room and quiz
Frontend/src/features/interview/components/LearningPage.jsx - Interview workflow
Frontend/src/features/interview/hooks/useInterview.js - Interview API client
Frontend/src/features/interview/services/interview.api.js
Backend API
- Express app
Backend/src/app.js - Auth routes
Backend/src/routes/auth.routes.js - Interview routes
Backend/src/routes/interview.routes.js - Auth controller
Backend/src/controllers/auth.controller.js - JWT middleware
Backend/src/middlewares/auth.middleware.js
Strategy and learning
- Interview controller
Backend/src/controllers/interview.controller.js - AI generation service
Backend/src/services/ai.service.js - Resume PDF renderer
Persistence
- Users
Backend/src/models/user.model.js - Interview reports
Backend/src/models/interviewReport.model.js - Token blacklist
Backend/src/models/blacklist.model.js
External services
- Google Gemini
- MongoDB
Other components
- User
Connections 31
- User → Login and register: registers or logs in
README.md - User → Reports dashboard: submits job inputs
README.md - Login and register → Auth logic: uses
Frontend/src/features/auth/pages/Register.jsx - Auth logic → Auth API client: calls
Frontend/src/features/auth/hooks/useAuth.js - Auth API client → Express app: sends requests
README.md - Express app → Auth routes: mounts
Backend/src/app.js - Express app → Interview routes: mounts
Backend/src/app.js - Auth routes → Auth controller: dispatches
Backend/src/routes/auth.routes.js - Auth routes → JWT middleware: protects session lookup
Backend/src/routes/auth.routes.js - Auth controller → Users: reads and creates
Backend/src/controllers/auth.controller.js - Auth controller → Token blacklist: blacklists on logout
Backend/src/controllers/auth.controller.js - JWT middleware → Token blacklist: checks token
Backend/src/middlewares/auth.middleware.js - JWT middleware → Interview routes: guards requests
Backend/src/routes/interview.routes.js - User → Protected routes: accesses features
README.md - Protected routes → Reports dashboard: allows authenticated
Frontend/src/app.routes.jsx - Protected routes → Report viewer: allows authenticated
Frontend/src/app.routes.jsx - Reports dashboard → Interview workflow: requests reports
Frontend/src/features/interview/pages/Home.jsx - Report viewer → Interview workflow: loads strategy
Frontend/src/features/interview/pages/Interview.jsx - Report viewer → Study room and quiz: renders
Frontend/src/features/interview/pages/Interview.jsx - Study room and quiz → Interview workflow: requests study and progress
README.md - Interview workflow → Interview API client: calls
Frontend/src/features/interview/hooks/useInterview.js - Interview API client → Express app: sends requests
README.md - Interview routes → Interview controller: dispatches
Backend/src/routes/interview.routes.js - Interview controller → AI generation service: generates report and study material
Backend/src/controllers/interview.controller.js - Interview controller → Interview reports: creates and queries
Backend/src/controllers/interview.controller.js - Interview controller → AI generation service: requests tailored resume
Backend/src/controllers/interview.controller.js - AI generation service → Google Gemini: generates structured content
README.md - AI generation service → Resume PDF renderer: renders resume HTML
README.md - Interview reports → MongoDB: persists reports
README.md - Users → MongoDB: persists accounts
README.md - Token blacklist → MongoDB: persists revoked tokens
README.md