How waliulrayhan/find-best-cv works
Project Type & Purpose
• This project is a full-stack, AI-driven resume screening tool.
• Its purpose is to allow recruiters/HR professionals to upload multiple CVs along with a job description and then use NLP techniques to extract text, compute similarity scores, and rank resumes accordingly.
• The solution also includes a contact form for email notifications.
Main Components
• Frontend Component:
• Built with Next.js, TypeScript, Tailwind CSS, and other modern libraries.
• Contains various pages (Home, Upload, Results, Contact, Privacy, Terms) and API routes (e.g., /api/contact).
• Acts as the client that users interact with and sends requests to the backend.
• Backend Component:
• Built with FastAPI (Python) which serves as the API provider.
• Contains endpoints such as POST /match-cvs/, GET /download-file/{filename}, and GET /health.
• Handles file uploads (PDF, DOCX) and processes them (text extraction, processing, keyword matching, and similarity calculation).
• Incorporates libraries like scikit-learn, NLTK, PyMuPDF, and python-docx to perform core text processing/NLP functions.
• File Storage:
• The “uploads” directory in the backend stores the uploaded resumes/CVs.
• Deployment & Containerization:
• Docker and Docker Compose configurations are provided to containerize the frontend and backend separately.
• Contains Dockerfiles for both “frontend” and “backend” and additional configuration files (Procfile, render.yaml) for deployment purposes.
• External Services:
• Email service integration via Nodemailer.
• Although Nodemailer is mentioned, it may be integrated either server-side (backend) or through API calls from the frontend.
Relationships & Data Flow
• The User Interface (frontend) sends a file upload and job description data to the FastAPI backend through REST API calls.
• The backend processes the files (extracting text, preprocessing, feature extraction, similarity score computation) and returns a ranked list of candidates along with keyword matches.
• The frontend then displays the interactive results with detailed similarity scores.
• Additionally, the contact form on the frontend sends email messages to integrated email services (likely via an API endpoint interacting with Nodemailer).
• Docker Compose orchestrates network communication between frontend and backend containers.
Key Architectural Patterns and Design Principles
• Clear separation of concerns: a decoupled frontend and backend architecture.
• Containerization: Docker is used to encapsulate and run each part of the application reliably.
• Client/Server Model: The frontend acts as the client while the FastAPI server handles computational logic and file processing.
• Modular design: Frontend pages and components are modular, while the backend’s text processing functionalities are clearly separated (for instance, main.py for orchestrating API requests, text_processor.py for handling NLP tasks).