Notification service for the Bento platform.
The Bento notification service is configured via environment variables
DATABASE: (Misleadingly named) Path to the directory in which thedb.sqlite3file can be found or created.REDIS_HOST: Redis server host. Default:localhostREDIS_PORT: Redis server port. Default:6379
First, Poetry >=2.2.1,<3 must be installed:
pip install -U 'poetry>=2.2.1,<3'
Development dependencies are described in pyproject.toml using Poetry, and can be
installed using the following command:
poetry installAfterward, we need to set up the DB:
poetry run flask db upgradeTo create migrations, make sure your database is on the latest migration. Then, do the following:
poetry run flask db migrate -m "Some message here"To test locally, run:
poetry run tox