Set environment variable on your operating system.
SWI_HOME_DIR=C:\\Program Files\\swipl
python -m venv venv
On Unix-based systems (Linux/macOS):
source venv/bin/activate
On Windows (PowerShell):
.\venv\Scripts\Activate
With the virtual environment activated:
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
The server will start at http://127.0.0.1:8000/. You can access the application in your web browser.