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

VariabeleStandaardBeschrijving
BACKEND_HOST0.0.0.0FastAPI bind-adres
BACKEND_PORT8000FastAPI-poort
FRONTEND_HOST0.0.0.0Next.js bind-adres
FRONTEND_PORT3000Next.js-poort
NEXT_PUBLIC_API_URLhttp://localhost:8000Publieke URL van de FastAPI-backend die de browser gebruikt
CORS_ORIGINShttp://localhost:3000,https://ats-copilot.com,...Toegestane CORS-origins, komma-gescheiden
OLLAMA_BASE_URLhttp://127.0.0.1:11434Lokaal Ollama-eindpunt
ATS_COPILOT_DATA_DIRbackend/dataMap 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