Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.34 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.34 KB

PPP Logging backend

Build Status Code Coverage Scrutinizer Code Quality

How to install

With a recent version of pip:

pip3 install git+https://github.com/ProjetPP/PPP-logger.git

With an older one:

git clone https://github.com/ProjetPP/PPP-Logger.git
cd PPP-Logger
python3 setup.py install

Use the --user option if you want to install it only for the current user.

How to run the logger (for system administrators)

You can write your config.json file in a quite straightforward way, using the file example_config.json as an example.

Then, just run:

PPP_LOGGER_CONFIG=/path/to/json/config.json gunicorn ppp_logger:app

How to use the logger API (for frontend developpers)

Just send a POST request to your logger instance, with this content:

{"id": "<request id>", "question": "<the question the user wrote>",
"responses": [list of responses returned by the core]}