The project acquaints with the Redis Queue, a simple Python library for queueing jobs and processing them in the background with workers.
- Python3;
- Flask web-framework;
- Redis nosql database;
- Redis Queue library;
- Poetry virtual environment;
Install Redis and Python3 on your computer. Use Poetry for virtual environment.
Clone repository and navigate to folder on command line:
git clone ...
cd rq-demo
Install dependencies, run virtual environment
poetry install
poetry shell
Start Redis-server and check if Redis is working properly (response is PONG)
redis-server
redis-cli ping
Proceed to rq-demo/rq_demo folder and run the app, then go to url
cd rq_demo
poetry run flask run
http://127.0.0.1:5000/
And it's clearer to run the application in VScode debug mode