-
Notifications
You must be signed in to change notification settings - Fork 8
Explore FAB Samples
valhuber edited this page Aug 12, 2020
·
1 revision
If you git clone FAB, it contains a number of samples you can explore. Set them up as follows.
mkdir fab
cd fab
git clone https://github.com/dpgaspar/Flask-AppBuilder.git
# Prepare your examples environment:
cd fab/Flask-AppBuilder/examples
# required only for the first example
virtualenv venv
source venv/bin/activate
(venv)$ pip install flask-appbuilder
Ensure that venv is under the examples folder.
Once you have prepared your examples environment, you can run each app like this (here using composite_keys as an example):
(venv)$ cd composite_keys
(venv)$ export FLASK_APP=app
(venv)$ flask fab create-admin
# if exists, populate test data
# in some cases, correct import errors (use app, not .app)
(venv)$ python testdata.py
(venv)$ flask run