Skip to content

About

An AI-assisted hiring workflow that helps teams create jobs, upload resumes, rank candidates, and generate interview questions from candidate profiles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resume Intelligence Platform

An AI-assisted hiring workflow that helps teams create jobs, upload resumes, rank candidates, and generate interview questions from candidate profiles.

The platform has:

  • A FastAPI backend for auth, job management, resume processing, scoring, and interview question generation
  • A React + Vite frontend for the recruiter dashboard and workflow UI
  • Optional Docker setup for running both services together

What The Project Does

  • Authenticates an admin user via JWT
  • Creates and stores job descriptions
  • Extracts job requirements from each job description
  • Uploads and parses candidate resumes (pdf, doc, docx)
  • Scores candidates using semantic similarity, skill match, and experience
  • Ranks candidates for each job
  • Generates interview questions per candidate/job pair (Gemini when configured, fallback logic otherwise)

Tech Stack

Backend

  • Python 3.11
  • FastAPI + Uvicorn
  • SQLAlchemy (async) + SQLite (default)
  • Pydantic / pydantic-settings
  • NLP/ML: spaCy, sentence-transformers, scikit-learn, numpy
  • Optional LLM integration: Google Gemini
  • Tooling: uv, pytest, ruff, mypy

Frontend

  • React 18 + TypeScript
  • Vite
  • React Router
  • TanStack Query
  • Zustand
  • Tailwind CSS
  • Axios

Project Structure

resume-intelligence-platform/
├── backend/
│   ├── app/
│   │   ├── api/v1/endpoints/        # auth, jobs, candidates, interview endpoints
│   │   ├── core/                    # config, security, database
│   │   ├── models/                  # SQLAlchemy models
│   │   ├── schemas/                 # request/response schemas
│   │   ├── services/                # parsing, extraction, matching, interview generation
│   │   ├── utils/                   # file upload helpers
│   │   └── main.py                  # FastAPI app entrypoint
│   ├── tests/                       # API and service tests
│   ├── .env.example                 # backend environment template
│   ├── Dockerfile
│   └── pyproject.toml
├── frontend/
│   ├── src/
│   │   ├── components/              # layout, pages, UI components
│   │   ├── lib/api.ts               # frontend API client
│   │   ├── store/                   # auth state (Zustand)
│   │   ├── App.tsx                  # app routes
│   │   └── main.tsx
│   ├── Dockerfile
│   ├── nginx.conf
│   ├── package.json
│   └── vite.config.ts
├── docker-compose.yml
├── Makefile
└── README.md

Prerequisites

  • Python 3.11+
  • Node.js 18+ (Node 20 recommended)
  • npm
  • uv for Python dependency management
  • Docker + Docker Compose (optional for containerized run)

Environment Configuration

Backend

  1. Copy environment template:
cp backend/.env.example backend/.env
  1. Update at least:
  • SECRET_KEY (required; use a secure random value)
  • ADMIN_USERNAME / ADMIN_PASSWORD
  • GEMINI_API_KEY (optional; if empty, interview generation uses fallback logic)

Default DB is SQLite:

  • DATABASE_URL=sqlite+aiosqlite:///./resume_intelligence.db

No dedicated frontend .env is currently required for local development.

Setup And Run (Local Development)

You can run services directly, or use the Makefile.

Option A: Use Makefile (recommended)

From repository root:

make install

Then start services in two terminals:

Terminal 1:

make dev-backend

Terminal 2:

make dev-frontend

App URLs:

  • Frontend: http://localhost:5173
  • Backend API docs: http://localhost:8000/api/docs
  • Health endpoint: http://localhost:8000/api/health

Option B: Manual setup

Backend:

cd backend
uv sync
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload

Frontend:

cd frontend
npm install
npm run dev

Docker Setup

From repository root:

docker compose up --build -d

Access:

  • Frontend (nginx): http://localhost:5173
  • Backend: http://localhost:8000
  • API docs: http://localhost:8000/api/docs

Stop:

docker compose down

Or via Makefile:

make docker-up
make docker-logs
make docker-down

Backend API Overview

Base prefix: /api/v1

  • POST /auth/login - admin login, returns bearer token
  • POST /jobs - create a job
  • GET /jobs - list jobs
  • GET /jobs/{job_id} - get job details
  • DELETE /jobs/{job_id} - delete a job
  • POST /jobs/{job_id}/candidates/upload - upload candidate resumes
  • GET /jobs/{job_id}/candidates - list candidates for a job
  • GET /jobs/{job_id}/candidates/rankings - ranked candidates (min_score optional)
  • POST /candidates/{candidate_id}/interview-questions - generate interview questions
  • GET /candidates/{candidate_id}/interview-questions - list generated question sets

All /api/v1 endpoints (except login) require Authorization: Bearer <token>.

Frontend Notes

  • The frontend API client uses /api/v1 as base path.
  • In local development, Vite proxies /api to http://localhost:8000.
  • If API calls fail in browser, verify backend is running on port 8000.

Quality And Testing Commands

From repo root:

make test
make test-cov
make lint
make format
make typecheck

Common Development Workflow

  1. Start backend and frontend
  2. Open http://localhost:5173
  3. Login with ADMIN_USERNAME and ADMIN_PASSWORD from backend/.env
  4. Create a job with detailed description
  5. Upload one or more resumes
  6. Wait for processing to complete
  7. Review rankings and generate interview questions

Troubleshooting

  • 401 Unauthorized: token expired/invalid; log in again
  • Login fails: verify ADMIN_USERNAME/ADMIN_PASSWORD in backend/.env
  • Resume processing errors: verify file type is pdf, doc, or docx
  • No interview AI output: set GEMINI_API_KEY (fallback still works without it)
  • Frontend cannot reach API: ensure the backend is running on 127.0.0.1:8000 (or the same host the Vite proxy uses). If you see ECONNREFUSED ::1:8000 in the Vite terminal, the dev proxy targets IPv4 (127.0.0.1) to match Uvicorn—restart npm run dev after pulling updates.
  • Port conflicts: change local ports in vite.config.ts or backend run command

Security Notes

  • Never commit backend/.env
  • Replace development SECRET_KEY in all non-local environments
  • Replace default admin credentials outside local development

About

An AI-assisted hiring workflow that helps teams create jobs, upload resumes, rank candidates, and generate interview questions from candidate profiles.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages