flask_dramatiq_example
flask_dramatiq_example copied to clipboard
An example app demonstrating how you can use Dramatiq with Flask.
flask_dramatiq_example
An example app demonstrating how you can use Dramatiq with Flask.
:warning: A full-featured Flask-Dramatiq extension is now available! :cake:
Setup
- Clone the repo, then run
pipenv install
. - Run Postgres, then run
psql -c "create database flask_dramatiq_example;" -U postgres
. - Run RabbitMQ.
- Run
pipenv run python -c 'from app import Model, database; Model.metadata.create_all(database)'
to create the database. - Run the web server:
pipenv run flask run --reload
. - Run the workers:
pipenv run dramatiq app
.
License
flask_dramatiq_example is licensed under Apache 2.0. Please see LICENSE for licensing details.