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
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 popularSpawn 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.