I wanted a super-quick way to create new websites with all my favorite code settings and customizations. Hence, I created this boilerplate project based on the Flask (Python) microwebframework.
Why Flask-Boilerplate? Because you get:
- Good code defaults – for example, (1) it uses packages and modules by default so that controllers and models are organized into a standard directory structure and split into multiple files, (2) it merges and compresses your various CSS files into one, your multiple JS files into one, for performance reasons. And so on.
- New Project script – sets up everything for you right from generating the secret key (for secure cookies) to integrating memcache (including mimicing
- Deploy to a Ubuntu server with a single command – sets up everything for you, including
- NOTE: The installation script works specifically for Ubuntu Linux, Apache, mod_wsgi only.
- jQuery – no webapp is complete without it.
- Grid system, via the 960 Grid System – so that you can get started with your UI quickly.
- HTML5 goodness, via HTML5 Boilerplate – for a good base UI.
git clone git://github.com/swaroopch/flask-boilerplate.git mynewapp
pip install Fabric
Write your code in
When you’re ready to deploy your code to a server:
fab server_setup # once per server
When you clone a repo and want to run it: