DD2477 Search Engines & Information Retrieval Systems project (Group 10)
You can set elastic search environment following instruction at elasticsearch-tutorial.md. It uses docker, so before set the environment of Elasticsearch, please make sure you already install docker.
- Python: 3.10
- Install
virtualenv
, either via the OS's package manager orpip install virtualenv
. - Create a virtual environment:
virtualenv venv
. - Activate the virtual environment:
source venv/bin/activate
. - Install the required packages:
pip install -r requirements.txt
.
These variables should be written in a .env
/.envrc
file or setting by yourselves through the terminal.
SECRET_KEY
: ask the repository creator (VERY unsafe!), or generate oneELASTIC_PASSWORD
: You should acquire this while setting up elasticsearch (reference).
First things first, to create or recreate the SQLite user profile database, run the sqlitedb.py
script:
python -m utils.sqlitedb
Choose option '1' to create the database for the first time, or option '2' to delete and to recreate it.
Run, at the root of the project:
python -m terminal.tui
# Apply migrations
python manage.py migrate
# Run the server
python manage.py runserver