/flask_dramatiq_example

An example app demonstrating how you can use Dramatiq with Flask.

Primary LanguagePythonOtherNOASSERTION

flask_dramatiq_example

Deploy

An example app demonstrating how you can use Dramatiq with Flask.

⚠️ A full-featured Flask-Dramatiq extension is now available! 🍰

Setup

  1. Clone the repo, then run pipenv install.
  2. Run Postgres, then run psql -c "create database flask_dramatiq_example;" -U postgres.
  3. Run RabbitMQ.
  4. Run pipenv run python -c 'from app import Model, database; Model.metadata.create_all(database)' to create the database.
  5. Run the web server: pipenv run flask run --reload.
  6. Run the workers: pipenv run dramatiq app.

License

flask_dramatiq_example is licensed under Apache 2.0. Please see LICENSE for licensing details.