Fbone is a Flask template/bootstrap/boilerplate application.
- Register, login, logout, remember me and reset password.
- Use twitter/bootstrap and HTML5 Boilerplate.
- Handle forms with WTForms.
- Handle database with SQLAlchemy.
- Deploy on Apache + mod_wsgi with fabric.
- i18n support with Flask-Babel.
- Unit testing with Flask-Testing.
Download codes.
git clone https://github.com/imwilsonxu/fbone.git <your-project-name>
cd <your-project-name>
# Clean git history.
rm -rf .git
Setup packages.
python setup.py install
Reset database (with sqlite, check out fbone/config.py
).
python manage.py reset
Run local server.
python manage.py run
Compile babel.
python setup.py compile_catalog --directory fbone/translations --locale zh -f
Deploy with fabric
fab deploy
sudo apt-get install -y tree
cd fbone
tree
Thanks to Flask and its extensions.