Welcome! This repository is an example of a simple implementation of a leaderboard/scoreboard using Python, JavaScript, and Redis.
Disclaimer: This repository is for educational purposes and is not meant for production deployment.
- Run
brew install redis
- Open a terminal window, and execute
redis-cli
. - Type ping, and Redis should respond with PONG.
Using a terminal window, cd
into your preferred directory, and execute the following command:
git clone https:/bryangalindo/leaderboard-example.git
In this section, we'll set up a Python virtual environment and install the required packages.
cd leaderboard-example
python3 -m venv venv
source ./venv/bin/activate
pip install -r 'requirements.txt'
- Execute the following command:
python app.py & python increase_score_task.py
- Navigate to localhost:5000.
- Click the Start Streaming Scores button and watch your leaderboard go!