Skip to content

A Tornado-client of distributed "Poll" application responsible for pushing database updates to the browser

Notifications You must be signed in to change notification settings

hexvolt/poll_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POLL CLIENT

This is a client application for the test POLL SERVER app that consumes messages about models changes from the server through the RabbitMQ and visualises it for the user.

Setting up and Installation

It is recommended to use Python 3.3+, so if you don't have it yet, install Python first and create its virtual environment in your virtualenv folder:

pyvenv-3.5 <env_name>
cd <env_name>
source bin/activate

Install the requirements needed for the project:

cd <project_dir>
pip install -r requirements.txt

Set your POLL_SERVER_URL in your OS environment variables or in settings.py

  • Set up the connection with RabbitMQ server

Write down the parameters of your RabbitMQ server into your environment variables or to the setting.py file (see RABBITMQ_USER, RABBITMQ_PASSWORD, etc)

  • Set up and run Redis

Follow Redis installation instructions

Run the Redis server:

src/redis-server

Note: the Redis server should be running when starting the project in order to be able to save messages consumed from RabbitMQ

  • Run the project

    make run

Locally the default URL of index page is http://0.0.0.0:8888/

About

A Tornado-client of distributed "Poll" application responsible for pushing database updates to the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published