Skip to main content

The Best Flask Boilerplate Framework

Project description

GlassBlower v2 The Best Flask Boilerplate!! GlassBlower is an implementation based on the Rails style

Fist steps:

In the directory where you want to do the project $python

$cd project

#in your current directory, to generate the virtual envairoment $ virtualenv venv

$ source venv/bin/activate

#this file contain Flask-libs $ pip install -r requirements.txt

#(optional)start database $ python db init

#(require 4) first migrate $ python db migrate

#(require 5) update database $ python db upgrade

#for run the server, is like django $ python runserver

Config database and enviroment work: config/

Add the routes in: config/

GlassBlower File creator: You can create views, models, api, login and scaffolding

Create view example:

$ python blow view –newFile whatever

this command make:
app/views/ app/templates/whatever.html
and modify:

you need to update for routing

Create model example:

$ python blow model –newFile whatever

this command make: app/models/

and modify: app/models/

you need to do

$ python db migrate $ python db upgrade

Create login example:

In GlassBlower is very simple make a login

$ python blow login

You need to do after:

$ python db migrate $ python db upgrade

Create api example:

This command make rest api

$ python blow api –newFile whatever

You need to do after modify models file:

$ python db migrate $ python db upgrade

Create scaffold example:

$ python blow scaffold –newFile whatever

You need to do after modify models file:

$ python db migrate $ python db upgrade

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for glassblower, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size glassblower-0.2.5.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page