A simple flask project template with Bootstrap, a full testing suite, Peewee ORM, and Coffeescript support.
Loosely based of this Django project template.
- Create your virtualenv
git clone https://github.com/sloria/flask-template PROJECTNAME
- Rename the folder to your project name.
cd PROJECTNAME
pip install -r requirements/dev.txt
python run.py
Features:
Class-based views:
ORM:
- Peewee
- flask-peewee
- Also provides admin, authentication, REST API
Testing:
- nose
- watchdog
- Webtest
Deployment:
- gunicorn
- Run tests using
fab test
- To enter "watch" mode,
fab watchmedo
- Run
fab coffee
- Write your Coffeescript in project/static/coffee
- That's it!
Licensed under the MIT license. See the bundled LICENSE file for more details.