Skip to content

bento-platform/bento_notification_service

Repository files navigation

Bento Notification Service

Build Status codecov

Notification service for the Bento platform.

Configuration

The Bento notification service is configured via environment variables

  • DATABASE: (Misleadingly named) Path to the directory in which the db.sqlite3 file can be found or created.
  • REDIS_HOST: Redis server host. Default: localhost
  • REDIS_PORT: Redis server port. Default: 6379

Running in Development

First, Poetry >=1.3.2 must be installed:

pip install -U poetry

Development dependencies are described in pyproject.toml using Poetry, and can be installed using the following command:

poetry install

Afterward, we need to set up the DB:

poetry run flask db upgrade

To create migrations, make sure your database is on the latest migration. Then, do the following:

poetry run flask db migrate -m "Some message here"

Testing

To test locally, run:

poetry run tox