Fbone (Flask bone) is a Flask (Python microframework) template/bootstrap/boilerplate application, with best practices (I hope).
You can use it for
- learning Flask.
- kicking off your new project.
- Modular Applications with Blueprints.
- Use Sentry for real-time crash reporting.
- Automated managament via fabric
Pre-required Setup:
-
MacOS/Ubuntu (should be fine in other linux distro)
-
git
-
Python / pip / Fabric
-
sqlite / MySQL
-
Apache + mod_wsgi
git clone https://github.com/imwilsonxu/fbone.git fbone
fab setup_python_macos fab bootstrap fab test fab debug
βββ CHANGES Change logs
βββ README.markdown
βββ fabfile.py Fabric file to automated managament project
βββ fbone.conf Apache config
βββ requirements.txt 3rd libraries
βββ tests.py Unittests
βββ wsgi.py Wsgi app
βββ fbone
Β Β βββ __init__.py
Β Β βββ app.py Main App
Β Β βββ config.py Develop / Testing configs
Β Β βββ constants.py Constants
Β Β βββ decorators.py Customized decorators
Β Β βββ extensions.py Flask extensions
Β Β βββ filters.py Flask filters
Β Β βββ utils.py Python utils
Β Β βββ frontend Frontend blueprint
Β Β βΒ Β βββ __init__.py
Β Β βΒ Β βββ forms.py Forms used in frontend modular
Β Β βΒ Β βββ views.py Views used in frontend modular
Β Β βββ user
Β Β βββ api
Β Β βββ static Static files
Β Β βΒ Β βββ css
Β Β βΒ Β βββ favicon.png
Β Β βΒ Β βββ humans.txt
Β Β βΒ Β βββ img
Β Β βΒ Β βββ js
Β Β βΒ Β βββ robots.txt
Β Β βββ templates Jinja2 templates
Β Β Β Β βββ errors
Β Β Β Β βββ frontend
Β Β Β Β βββ index.html
Β Β Β Β βββ layouts Jinja2 layouts
Β Β Β Β βΒ Β βββ base.html
Β Β Β Β βΒ Β βββ user.html
Β Β Β Β βββ macros Jinja2 macros
Β Β Β Β βββ mails Mail templates
Β Β Β Β βββ user
- Upgrade to Python3k.
- User Celery, distributed task queue.
- User Elastic Search, Open Source, Distributed, RESTful Search Engine.
- Use PostgreSQL.
- Use GeeTest, a popular CAPTCHA service in China.
Many thanks to Python, Flask and other good stacks.
