diff --git a/Superset-minimal-setup.md b/Superset-minimal-setup.md new file mode 100644 index 0000000..d45c231 --- /dev/null +++ b/Superset-minimal-setup.md @@ -0,0 +1,22 @@ +# 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 superset db upgrade +export FLASK_APP=superset +export PYTHONPATH=. +superset fab create-admin +superset init +PYTHONPATH=. gunicorn -b 0.0.0.0:8088 "superset.app:create_app()" +``` +