joeflack4 / ohbehave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate for Python Dash Projects

Uses the following packages. Python Flask Flask-Assets Pandas Dash Plotly

Inspired by: toddbirchard/plotlydash-flask-tutorial.

Getting Started

1. Environment Variables

Create an .env file in the root directory with the following variables.

  • FLASK_APP: Entry point of your application; should be ohbehave/app.py.
  • FLASK_ENV: The environment in which to run your application; either development or production.
  • SECRET_KEY: Randomly generated string of characters used to encrypt your app's data.
  • ASSETS_DEBUG (optional): Debug asset creation and bundling in development.
  • COMPRESSOR_DEBUG (optional): Debug asset compression while in development.

2. Installation

Run: pip install -r requirements-unlocked.txt

3. Running

Run: make deploy. Then, open 0.0.0.0:5050 in your browser.

Running: Production

Needs pip install uWSGI (TODO: Need to add more notes here)

About

License:MIT License


Languages

Language:Python 95.4%Language:Makefile 3.2%Language:Shell 1.4%