Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
/ FastAPI-RQ Public archive

Sample dockerized web application powered by fastapi. This template includes redis queue, sockets, tests and many other useful features.

Notifications You must be signed in to change notification settings

Madi-S/FastAPI-RQ

Repository files navigation

Dockerized FastAPI + RedisQueue application

Run app

docker-compose up --build

Go to 127.0.0.1:5057 (main app)

Go to 127.0.0.1:5057/subapi (sub app)

Run tests

Before running tests, you need to comment line #29 in main.py:

app.mount('/static', StaticFiles(directory='static'), name='static')

For some weird reasons, it throws an error when running the tests

Also, make sure the docker container is running (the command above)

docker-compose exec web python run_tests.py

OR

docker-compose exec web python -m pytest

About

Sample dockerized web application powered by fastapi. This template includes redis queue, sockets, tests and many other useful features.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published