Skip to content

Files

Latest commit

 

History

History

backend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Search engine back-end

👀 Preview:

🛠️ Install and run

Setup opensearch

  1. Run the docker-compose file. From backend/:
docker-compose up
  1. Create the open search index and insert the data:

Note: Before perform this step you must complete the data recollection (data/scraping) and data cleansing (data/cleansing) steps.

(optional) virtualenv -p python3 venv
(optional) source venv/bin/activate

pip install notebook 
jupyter notebook

Then, open and run the setup_opensearch.ipynb file.

Start the python API

Note: Before perform this step, the docker-compose file should be running an the data should be already inserted on open search.

(optional) virtualenv -p python3 venv
(optional) source venv/bin/activate

pip install -r requirements.txt
python app.py