Backend Setup¶
The backend is a Django 5.1 application using Django REST Framework for the API layer.
Install Dependencies¶
This installs Django, DRF, Celery, spaCy, PyTorch, Transformers, and other required packages. The full dependency list is in requirements.txt.
Note
The torch and transformers packages are large. The initial install may take several minutes.
Download spaCy Model¶
The French NLP model is required for keyword extraction:
Run Migrations¶
This creates the necessary database tables in your Supabase PostgreSQL instance.
Start the Development Server¶
The API will be available at http://localhost:8000. You can verify it's running by visiting http://localhost:8000/api/.
Celery Worker¶
AI analysis tasks run asynchronously through Celery with Redis as the message broker: