This version failed to deploy to PyPi per PyPi deployment issues. Please use fab-quick-start
The fab_quickstart
command line utility generates
Flask Application Builder (FAB)
views.py
files, to create instant multi-page, multi-table apps.
Use this FAB Quick Start Guide to create the application below in 10 minutes.
Generated fab pages look as shown below:
- Multi-page: apps incude 1 page per table
- Multi-table: pages include
related_views
for each related child table, and join in parent data - Favorite field first: first-displayed field is "name", or contains "name" (configurable)
- Predictive joins: favorite field of each parent is shown (product name - not product id)
- Ids last: such boring fields are not shown on lists, and at the end on other pages
Flask Application Builder (FAB) provides a rapid means for building web pages for database apps, based on Python, Flask and sqlalchemy. Use this Quick Start Guide to create the application above in 10 minutes.
Recall that creating the views.py
file can be tedious. This utility generates the views.py
file from the models.py
file, to save time and reduce learning curve.
First, create a fab project (e.g., see the Quick Start Guide).
Then, generate the views.py
file like this:
cd <project> # fab directory containing `config.py` file
pip install -i https://test.pypi.org/simple/ FAB-Quickstart
fab-quickstart
Copy the console output to your views.py
file, and run fab / flask app:
export FLASK_APP=app
flask run
Use this to explore the FAB Quick Start Utility.