Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 995 Bytes

File metadata and controls

31 lines (22 loc) · 995 Bytes

Application Setup

To setup the application, first install the dependencies:

$ cd python
$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt

The 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:[email protected]:6390

Finally, the default logging level is set to INFO. You can change it with the LOGLEVEL environment variable. For example:

$ export LOGLEVEL=DEBUG

Running the Application

Start the application as follows:

$ python main.py