Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (32 loc) · 1.04 KB

File metadata and controls

50 lines (32 loc) · 1.04 KB

Installation

docker

Web app hosted on localhost 8008/tcp:

# start the service
docker compose up -d

# close everything
docker compose down

# start debug version, backend exposed without nginx as the frontend 
docker compose -f compose_debug_env.yaml up -d

# stop debug version
docker compose -f compose_debug_env.yaml down

Python's virtualenv

A mongodb hosted on port 27017 is required, then create the virtualenv and install requirements as follows:

rm -rf object_virtualenv
mkdir object_virtualenv 
virtualenv --python=python3 object_virtualenv
source object_virtualenv/bin/activate

cd src
python -m pip install -r requirements.txt

pip install nltk
python -m nltk.downloader popular

Spawn the service:

# python server.py --host <address-listening> --mongo_ip <mongodb-address> --debug
python server.py --host 127.0.0.1 --mongo_ip 127.0.0.1 --debug
  • NOTE: if you reset the db then the web service should be restarted and the staging folder's content (default: /tmp/db_capa) should be deleted.