Webapp to display outgoing slack channel webhooks including links.
Use pipenv
#install dependencies and virtualenv
pipenv install --python 3.7
#Then activate your virtual env
pipenv shellOnce the postgres database is up and running and all requirements are installed. Export the Flask app in your terminal session.
export FLASK_APP=application.pyThen run the flask app
flask runHave a postgres instance running on port 5432
Supplied is a docker-compose.yml if you want to run a postgres container.
docker-compose upWe are using Flask-Migrate to handle all the database migrations. For initial db setup:
flask db init
To migrate follow these steps:
flask db migrate
#then to apply the migrations
flask db upgrade