Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

randomicecube/dd2477-project

Repository files navigation

dd2477-project

DD2477 Search Engines & Information Retrieval Systems project (Group 10)

Setup Instructions

Elasticsearch

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.

Required Environment

  • Python: 3.10

Required Packages

  1. Install virtualenv, either via the OS's package manager or pip install virtualenv.
  2. Create a virtual environment: virtualenv venv.
  3. Activate the virtual environment: source venv/bin/activate.
  4. Install the required packages: pip install -r requirements.txt.

Environment Variables

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 one
  • ELASTIC_PASSWORD : You should acquire this while setting up elasticsearch (reference).

Running things

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.

Terminal Interface

Run, at the root of the project:

python -m terminal.tui

Django Server

# Apply migrations
python manage.py migrate
# Run the server
python manage.py runserver

About

DD2477 Search Engines & Information Retrieval Systems project (Group 10)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •