How vinay024815-star/advanced-ats works
Purpose and Entry Points
This repository implements a resume-to-job-description matching system with a React frontend and Node.js backend. The client starts at frontend/src/main.jsx and routes through frontend/src/App.jsx. The API server starts from backend/index.js.
Frontend Application Shell
The Vite-based React client provides authentication, landing, dashboard, PDF editing, and home views. Authentication state is centralized in frontend/src/context/authContext.jsx; primary user-facing flows live in frontend/src/pages/SignIn.jsx, frontend/src/pages/Dashboard.jsx, and frontend/src/pages/EditPdf.jsx.
API Routing and Request Boundary
The backend exposes separate route groups for users, resume upload, job descriptions, and matching:
• backend/src/routes/user.route.js
• backend/src/routes/upload.route.js
• backend/src/routes/jd.route.js
• backend/src/routes/match.route.js
Controllers own HTTP-level orchestration and translate route requests into persistence and parsing/matching operations, including backend/src/controllers/resume.controller.js, backend/src/controllers/jd.controller.js, and backend/src/controllers/match.controller.js.
Identity, Validation, and Upload Security
Authentication is enforced at the middleware boundary by backend/src/middlewares/auth.middleware.js. Credential input validation is defined in backend/src/validators/auth.validator.js, while file intake is handled by backend/src/middlewares/upload.middleware.js. These boundaries should protect downstream parsing and user-owned resume/JD records.
Resume and Job Description Processing
Uploaded resume content is parsed and normalized before matching. The processing pipeline is represented by:
• backend/src/services/resumeParser.js
• backend/src/services/sectionSplitter.js
• backend/src/services/resumeStructure.js
Job descriptions receive comparable structural processing through backend/src/services/jdStructure.js. This establishes a shared structured-text boundary between raw document input and scoring.
Matching Pipeline and Results
Matching derives keywords and scores from structured resume and JD data via backend/src/services/keywordMatcher.js and backend/src/services/matchScore.js. Result persistence is modeled by backend/src/models/matchResult.model.js, enabling matching requests to produce durable, retrievable assessments rather than only transient responses.
Persistence and Runtime Dependencies
The backend uses a database connection layer at backend/src/config/db.js and domain models for users, resumes, and job descriptions:
• backend/src/models/user.model.js
• backend/src/models/resume.model.js
• backend/src/models/jd.model.js
Node.js runs both the API and PDF-processing dependencies; backend/pdf-parse.js and backend/operating-systems.pdf indicate local PDF parsing capability. The frontend is a separate Vite runtime defined by frontend/package.json and frontend/vite.config.js.
Main entry points: index.js API server · App.jsx App routing · db.js Database connection · EditPdf.jsx PDF editor
Components 18
React Client
Vite React application.
- Client entry
frontend/src/main.jsx - App routing
frontend/src/App.jsx - Auth state
frontend/src/context/authContext.jsx - Sign-in and dashboard
- PDF editor
frontend/src/pages/EditPdf.jsx
Node API
HTTP boundary and request orchestration.
- API server
backend/index.js - User routes
backend/src/routes/user.route.js - Resume and JD routes
- Match routes
backend/src/routes/match.route.js - Auth, validation, upload · Protects credentials and file intake before controllers.
- Resume and JD controllers
- Match controller
backend/src/controllers/match.controller.js
Document Processing
Structured-text and scoring pipeline.
- Resume structuring · Parses, splits, and normalizes uploaded resumes.
- JD structuring
backend/src/services/jdStructure.js - Keyword scoring · Derives keywords and match scores from structured documents.
Persistence
Database-backed domain records.
- Database connection
backend/src/config/db.js - Users, resumes, JDs
- Match results · Durable matching assessments.
backend/src/models/matchResult.model.js
Connections 23
- Client entry → App routing: mounts
- App routing → Auth state: uses
- App routing → Sign-in and dashboard: routes to
- App routing → PDF editor: routes to
- Sign-in and dashboard → API server: API requests
- PDF editor → API server: upload/edit requests
- API server → User routes: mounts
- API server → Resume and JD routes: mounts
- API server → Match routes: mounts
- User routes → Auth, validation, upload: guards
- Resume and JD routes → Auth, validation, upload: validates intake
- Auth, validation, upload → Resume and JD controllers: passes requests
- Resume and JD routes → Resume and JD controllers: dispatches
- Match routes → Match controller: dispatches
- Resume and JD controllers → Resume structuring: processes resumes
- Resume and JD controllers → JD structuring: structures JDs
- Resume structuring → Users, resumes, JDs: stores structured resumes
- JD structuring → Users, resumes, JDs: stores structured JDs
- Match controller → Keyword scoring: runs
- Users, resumes, JDs → Keyword scoring: supplies structured data
- Keyword scoring → Match results: persists assessment
- Database connection → Users, resumes, JDs: backs
- Database connection → Match results: backs