Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fidget-spinner/fastapi-celery-redis

A minimal viable example for a FastAPI, Celery, and Redis backend. With frontend JavaScript which polls tasks until done.
https://github.com/fidget-spinner/fastapi-celery-redis

celery fastapi polling redis redis-py

Last synced: 5 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](https://docs.conda.io/en/latest/) or
[miniconda](https://docs.conda.io/en/latest/miniconda.html) to install
required dependencies.

```bash
conda install --file requirements.txt
```

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

## License
[MIT](https://choosealicense.com/licenses/mit/)