/fastapi-celery-redis

A minimal viable example for a FastAPI, Celery, and Redis backend. With frontend JavaScript which polls tasks until done.

Primary LanguagePythonMIT LicenseMIT

fastapi-celery-redis

A minimum viable example for a web application using FastAPI, Celery (using redis broker/results backend). It demonstrates concepts like polling the state/progress of a task, and configuring Celery. It also shows how to run as basic async task.

Installation

Use the package manager conda or miniconda to install required dependencies.

conda install --file requirements.txt

Usage

Run everything in main.sh in order. Then open frontend/index.html to test it out.

License

MIT