From d4daa872860f357c24c43ca72e72dc20b1febe4b Mon Sep 17 00:00:00 2001 From: Guillem Borrell Nogueras Date: Thu, 3 Nov 2022 09:59:56 +0100 Subject: [PATCH] Update 'Superset minimal setup' --- Superset-minimal-setup.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Superset-minimal-setup.md 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()" +``` +