This project is designed to demonstrate specific functionalities using Redis and FastAPI. Follow the instructions below for setup and execution on your local machine.
Before starting, ensure you have the following installed on your system:
- Python 3.9.18
- Redis server
-
Create a Virtual Environment: Open a terminal, navigate to the project's root directory, and create a virtual environment by running:
python -m venv myenv
-
Activate the Virtual Environment:
-
On Windows, run:
myenv\Scripts\activate
-
On Mac, run:
source myenv/bin/activate
- Installing Dependencies:
pip install -r requirements.txt
To start both the Redis server and the FastAPI application, execute the script provided in the project:
./scripts/run_all.sh
This script initializes the necessary components for the application to run.
To check the status of the workers, use the rq info command:
rq info