A full-stack Applicant Tracking System with planned AI-powered features. Built with a FastAPI backend and React frontend, featuring strict multi-tenant architecture, role-based access control, and a comprehensive hiring pipeline.
| Layer | Technology |
|---|---|
| Frontend | React 19, TypeScript, Vite, TailwindCSS v4, React Router v7 |
| Backend | FastAPI, Python 3.14, SQLModel, Alembic |
| Database | PostgreSQL 16 (Docker) / SQLite (local dev) |
| Auth | JWT (python-jose), bcrypt password hashing |
| Testing | Vitest (frontend, 397 tests), pytest (backend, 407 tests) |
| Infrastructure | Docker Compose, Redis, Adminer |
- Multi-tenant Architecture — Strict organization-level data isolation
- JWT Authentication — Secure token-based auth with four roles: OWNER, ADMIN, HR, INTERVIEWER
- Job Management — Create, edit, and publish job postings with structured sections; share via public links
- Application Tracking — Receive applications through public job pages, review resumes (PDF viewer), manage candidate pipeline
- Speed Review — Rapid application review workflow with keyboard controls and undo support
- Team Management — Invite users via secure time-limited tokens, manage roles, activate/deactivate members
- Public Job Board — Server-rendered job detail pages with Jinja2 templates for applicants (no auth required)
- Comprehensive Test Suite — 804 tests across frontend and backend
Runs the full stack — frontend, backend, PostgreSQL, Redis, and Adminer.
Prerequisites: Docker Desktop installed and running
-
Set up environment variables
cp .env.example .env # Edit .env and update SECRET_KEY and POSTGRES_PASSWORD -
Start all services
docker-compose up --build
-
Access the application
- Frontend: http://localhost:5173
- API: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Database Admin: http://localhost:8080
-
Stop services
docker-compose down # To remove volumes and start fresh: docker-compose down -v
Run everything locally without Docker. Uses SQLite instead of PostgreSQL.
Prerequisites: Python 3.10+, Node.js 18+
cd backend
python -m venv .venv
# Activate virtual environment
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# Windows CMD:
.venv\Scripts\activate
# Linux / macOS:
source .venv/bin/activate
pip install -r requirements.txtCreate backend/.env:
SECRET_KEY=your-secret-key-here
DATABASE_URL=sqlite:///./ats.db
ACCESS_TOKEN_EXPIRE_MINUTES=30# Generate a secure secret key
python -c "import secrets; print(secrets.token_hex(32))"
# Start the backend
uvicorn src.main:app --reload --host 0.0.0.0 --port 8000cd frontend
npm install
npm run devThe frontend dev server runs at http://localhost:5173 and proxies API requests to the backend at http://localhost:8000.
ats-with-llm/
├── backend/
│ ├── src/
│ │ ├── auth/ # Authentication, authorization, user management
│ │ ├── organizations/ # Multi-tenant organization models
│ │ ├── jobs/ # Job postings CRUD, public links, sections
│ │ ├── applications/ # Application submissions, file storage, review
│ │ ├── ai/ # AI module (planned — resume scoring, JD generation)
│ │ ├── config.py # Application settings
│ │ ├── database.py # Database session management
│ │ └── main.py # FastAPI entry point
│ ├── alembic/ # Database migrations
│ ├── static/ # CSS & JS for public job pages
│ ├── templates/ # Jinja2 templates for public job pages
│ ├── tests/ # 407 backend tests
│ ├── uploads/ # Resume file storage
│ ├── requirements.txt
│ └── Dockerfile
├── frontend/
│ ├── src/
│ │ ├── api/ # API client (auth, jobs, applications, users)
│ │ ├── components/ # Reusable UI (Button, Modal, Table, PdfViewer, etc.)
│ │ ├── contexts/ # AuthContext (user state, tokens)
│ │ ├── hooks/ # useAuth hook
│ │ ├── layouts/ # AuthLayout, DashboardLayout
│ │ ├── pages/ # Login, Register, Jobs, Applications, Team, SpeedReview
│ │ └── types/ # TypeScript type definitions
│ ├── package.json
│ └── vite.config.ts
├── docker-compose.yml
└── README.md
| Method | Path | Description | Auth |
|---|---|---|---|
| POST | /register |
Register new organization + owner user | No |
| POST | /login |
Login and get JWT token | No |
| GET | /me |
Get current user profile | Yes |
| POST | /invite |
Invite user to organization | OWNER/ADMIN |
| POST | /accept-invite |
Accept invitation and create account | No |
| GET | /users |
List organization members | Yes |
| PATCH | /users/{id} |
Update user role | OWNER/ADMIN |
| PATCH | /users/{id}/deactivate |
Deactivate a user | OWNER/ADMIN |
| PATCH | /users/{id}/activate |
Reactivate a user | OWNER/ADMIN |
| Method | Path | Description | Auth |
|---|---|---|---|
| POST | /jobs/ |
Create a job posting | Yes |
| GET | /jobs/ |
List organization jobs (filterable by status) | Yes |
| GET | /jobs/{id} |
Get job details | Yes |
| PATCH | /jobs/{id} |
Update job (including status transitions) | Yes |
| DELETE | /jobs/{id} |
Delete a job | OWNER/ADMIN |
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /applications/ |
List applications (filterable) | Yes |
| GET | /applications/{id} |
Get application details | Yes |
| PATCH | /applications/{id} |
Update application status | Yes |
| GET | /applications/{id}/resume |
Download resume PDF | Yes |
| GET | /applications/stats |
Application statistics | Yes |
| Method | Path | Description | Auth |
|---|---|---|---|
| GET | /public/jobs/{token} |
Get public job posting (JSON) | No |
| GET | /public/jobs/{token}/view |
View job page (HTML) | No |
| POST | /public/jobs/{token}/apply |
Submit application with resume | No |
| GET | /public/jobs/{token}/apply/success |
Application success page | No |
cd backend
pytest # Run all 407 tests
pytest -v # Verbose output
pytest tests/auth/ -v # Run auth tests only
pytest --cov=src tests/ # With coveragecd frontend
npm test # Watch mode
npm run test:run # Single run (397 tests)
npm run test:coverage # With coverage reportPOSTGRES_USER=postgres
POSTGRES_PASSWORD=your-secure-password
POSTGRES_DB=postgres
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
REDIS_URL=redis://redis:6379/0
SECRET_KEY=your-secret-key-here
ALGORITHM=HS256
ACCESS_TOKEN_EXPIRE_MINUTES=30SECRET_KEY=your-secret-key-here
DATABASE_URL=sqlite:///./ats.db
ACCESS_TOKEN_EXPIRE_MINUTES=30docker-compose ps # Check running services
docker-compose logs db # View database logs
docker-compose logs backend # View backend logs
docker-compose restart # Restart all services- Port conflicts: Stop conflicting services or change ports in
docker-compose.yml(default: 8000, 5432, 6379, 8080)
- Import errors: Ensure the virtual environment is activated and run
pip install -r requirements.txt - Database errors: Delete
ats.dband restart to recreate tables; verifyDATABASE_URLinbackend/.env - Frontend not loading: Ensure the backend is running on port 8000; the frontend calls
http://localhost:8000from the browser
MIT