2 Superset minimal setup
Guillem Borrell Nogueras edited this page 2023-02-23 11:34:22 +01:00

How to create a minimal Superset setup

Crate a configuration file

MAPBOX_API_KEY = 'pk.eyJ1IjoidGhhbmh0YyIsImEiOiJjangxZmN6bWwwOTc4M3lxcHRsYW1tOW81In0.G-nEJxDpJlm3yoja2WZsxw'
SECRET_KEY = "RANDOM_STRING"
python3.8 -m venv env-superset
source env-superset/bin/activate
python -m pip install --upgrade pip setuptools wheel psycopg2-binary gunicorn
python -m pip install flask==2.0.3 werkzeug==2.0.3 jinja2==3.0.1 "wtforms<3.0" apache-superset==2.0.0 pillow
FLASK_APP=superset 
export FLASK_APP=superset
export PYTHONPATH=.
superset db upgrade
superset fab create-admin
superset init
PYTHONPATH=. gunicorn -b 0.0.0.0:8088 "superset.app:create_app()"