interactive,reactive web app built with Dash
Switch branches/tags
Nothing to show
Clone or download
Saikat Dey
Saikat Dey minor changes
Latest commit 2bde521 Sep 3, 2017
Permalink
Failed to load latest commit information.
.gitignore added demo Sep 3, 2017
LICENSE Initial commit Sep 3, 2017
Procfile Initial commit Sep 3, 2017
app.py updated requirements.txt Sep 3, 2017
demo.gif added new demo Sep 3, 2017
iris.csv Initial commit Sep 3, 2017
readme.md minor changes Sep 3, 2017
requirements.txt updated requirements.txt Sep 3, 2017
runtime.txt added python 2 runtime Sep 3, 2017

readme.md

What is it?

demo

It's an interactive application written using Dash (a.k.a shiny for python). This application demonstrates how easily you can build interactive visualizations in pure Python. I have used the classic iris dataset in this project.

No HTML/CSS/JS required. Although you could choose to add CSS and write your custom React/JS components.

How to install?

pip install -r requirements.txt

How to run?

python app.py 8000 #change 8000 to any port you want

or

python app.py #runs on port 80 by default

How to deploy it to Heroku?

Make sure that you have a Heroku account. Then, follow the steps in https://plot.ly/dash/deployment

or keep reading..

This app is deployment ready.

  • update requirements.txt before pushing to heroku

      pip freeze > requirments.txt
    
  • First time set-up:

      $ heroku create UNIQUE-APP-NAME # 1\. change UNIQUE-APP-NAME to a name of your liking
      $ git add . # 2\. add all files to git
      $ git commit -m 'Initial app boilerplate' # 3\. commit your changes
      $ git push heroku master # 4\. deploy code to heroku
      heroku ps:scale web=1  # 5\. run the app with a 1 heroku "dyno"
      $ heroku config:set SECRET_KEY=my_secret_key # 6\. replace my_secret_key with a random string
    
  • You're all set! It should be up and running at https://[UNIQUE-APP-NAME].herokuapp.com . Once you make any modifications, follow steps 2-4 above.

  • To check if your service is up and running do:

          $ heroku ps
    
  • To check for errors:

          $ heroku logs
    

References: Dash Tutorial