To setup the application, first install the dependencies:
$ cd python
$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txtThe application expects to find Redis at localhost on port 6379 with no password. These are the default values when installing Redis.
If your Redis server is located elsewhere and/or requires a password, set the value of the REDIS_URL environment variable to a valid Redis connection URL before starting the application. For example:
$ export REDIS_URL=redis://luca:sssssh@redis.mydomain.com:6390Finally, the default logging level is set to INFO. You can change it with the LOGLEVEL environment variable. For example:
$ export LOGLEVEL=DEBUGStart the application as follows:
$ python main.py