Capwell / rq-demo

rq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redis Queue demo based on Flask app

Description

The project acquaints with the Redis Queue, a simple Python library for queueing jobs and processing them in the background with workers.

Technologies

  • Python3;
  • Flask web-framework;
  • Redis nosql database;
  • Redis Queue library;
  • Poetry virtual environment;

Installation

Prerequisites

Install Redis and Python3 on your computer. Use Poetry for virtual environment.

Then go to a command line

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

Launch, start tasks and monitoring

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

About

rq


Languages

Language:Python 48.7%Language:HTML 26.5%Language:CSS 24.8%