/flask-demo

MVC Flask demo build on Boostrap

Primary LanguagePython

Python package Quality Gate Status

MVC Flask demo hosted on heroku

A simple demo MVC flask, for handling Slack commands and events and provide a simplified admin consoled to manage AWS instances (skeleton only, no boto3 code) with sample graphs.

Third party libraries:

Running the app

There are three ways of running the app, it defaults run on port 5000. Feel free to change it in ./app/config/Configuration.py, but then you need to update also all the shells!

1) Debug app:

python3 -m pip install -r requirements.txt
./debug.sh

2) Run the app with gunicorn

python3 -m pip install -r requirements.txt
./run.sh

3) Run the app in Docker

cd docker
./docker_build.sh
./docker_run.sh

In all three ways the app becomes available on http://127.0.0.1:5000

To stop and remove container run

cd docker
./docker_stop.sh

The demo is deployed on Heroku: https://jarda-demo.herokuapp.com/

Admin console: https://dashboard.heroku.com/apps/jarda-demo

todo: https://www.codeply.com/go/3l6UhaQEhq