This is an example of using the Redis Queue with FastAPI backend.
- Clone the repository using
git clonecommand. - Open the terminal and go to the project directory using
cdcommand. - Create virtual environment using
python -m venv venvorconda create -n venv python=3.10command. - Activate virtual environment using
source venv/bin/activateorconda activate venvcommand. - Install poetry using instructions from
here. Use
with the official installersection. - Set the following option to disable new virtualenv creation:
poetry config virtualenvs.create false - Install dependencies using
poetry install --no-rootcommand. The--no-rootflag is needed to avoid installing the package itself. - Setup
pre-commithooks usingpre-commit installcommand. More information aboutpre-commityou can find here. - Run the test to check the correctness using following command:
python -m unittest -b