Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

LandRegistry/govuk-notify-flask

Repository files navigation

GOV.UK Notify Flask Example

Build Status Requirements Status

Example using GOV.UK Notify service through a Flask app using the notifications python client.

Getting Started

git clone git@github.com:LandRegistry/govuk-notify-flask.git
cd govuk-notify-flask
pip3 install -r requirements.txt
export SECRET_KEY=<your_secret_key>
export NOTIFY_API_KEY=<your_api_key>
export FLASK_APP=govuk_notify_flask/__init__.py
export FLASK_DEBUG=1

Testing

pip3 install -r requirements_test.txt
flake8 .

Running

python3 -m flask run