Installatiehandleiding
Deze handleiding legt uit hoe je ATS-Copilot (backend + webinterface) installeert, configureert en draait, lokaal of achter een reverse proxy.
1. Vereisten
- Python 3.11+ (backend)
- Node.js 18+ en npm (frontend)
- (Optioneel) Ollama voor lokale AI-verrijking (
http://127.0.0.1:11434)
2. Snelstart (Windows)
Vanuit de projectroot:
.\start.ps1
Het script start de backend (:8000) en de frontend (:3000). Stoppen met:
.\stop.ps1
Open http://localhost:3000 in je browser.
3. Snelstart (Linux)
Maak de scripts eenmalig uitvoerbaar:
chmod +x start.sh stop.sh
Start in productiemodus (maakt venv, installeert afhankelijkheden, bouwt Next.js, draait beide services op de achtergrond met logs in logs/):
./start.sh
# Ontwikkelmodus (hot reload):
./start.sh --dev
Stoppen:
./stop.sh
4. Code ophalen en configureren
git clone <repository-url> ats-copilot.com
cd ats-copilot.com
Backend-afhankelijkheden:
cd backend
python -m venv .venv
# Windows: .venv\Scripts\pip install -r requirements.txt
# Linux: .venv/bin/pip install -r requirements.txt
Frontend-afhankelijkheden:
cd frontend
npm install
5. Backend (FastAPI API)
cd backend
# Windows: .venv\Scripts\uvicorn app.main:app --host 0.0.0.0 --port 8000
# Linux: .venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000
De API is beschikbaar op http://localhost:8000 (Swagger-docs op /docs). Bij de eerste start wordt het databaseschema automatisch aangemaakt.
6. Webinterface (Next.js)
In een andere terminal:
cd frontend
npm run dev
De interface is beschikbaar op http://localhost:3000. De frontend communiceert met de backend via NEXT_PUBLIC_API_URL (standaard http://localhost:8000).
7. Omgevingsvariabelen
| Variabele | Standaard | Beschrijving |
|---|---|---|
BACKEND_HOST | 0.0.0.0 | FastAPI bind-adres |
BACKEND_PORT | 8000 | FastAPI-poort |
FRONTEND_HOST | 0.0.0.0 | Next.js bind-adres |
FRONTEND_PORT | 3000 | Next.js-poort |
NEXT_PUBLIC_API_URL | http://localhost:8000 | Publieke URL van de FastAPI-backend die de browser gebruikt |
CORS_ORIGINS | http://localhost:3000,https://ats-copilot.com,... | Toegestane CORS-origins, komma-gescheiden |
OLLAMA_BASE_URL | http://127.0.0.1:11434 | Lokaal Ollama-eindpunt |
ATS_COPILOT_DATA_DIR | backend/data | Map voor SQLite DB & geüploade CV's |
8. Optionele Ollama (lokale AI)
Installeer Ollama apart en haal een model op. ATS-Copilot detecteert automatisch een draaiende Ollama en toont beschikbare modellen. Zonder Ollama werken deterministische scoring en drietalige NLP volledig offline.
9. IBM Docling (eerste run)
Bij de allereerste PDF/OCR-conversie downloadt Docling zijn lay-out/OCR-gewichten naar een lokale cache (~500 MB–1 GB). Volgende conversies draaien 100% offline.
10. Backend-tests draaien
cd backend
.venv/bin/pytest # Linux
.venv\Scripts\pytest # Windows
11. Stoppen
# Windows
.\stop.ps1
# Linux
./stop.sh