• Stars
    star
    1,713
  • Rank 27,245 (Top 0.6 %)
  • Language
    Python
  • Created about 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Fbone (Flask bone) is a Flask (Python microframework) starter/template/bootstrap/boilerplate application.

INTRODUCTION

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.

COMPONENTS

Frontend

Flask Extensions

Others

  • Modular Applications with Blueprints.
  • Use Sentry for real-time crash reporting.
  • Automated managament via fabric

USAGE

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

STRUCTURE

โ”œโ”€โ”€ 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

TODO

LICENSE

MIT LICENSE

ACKNOWLEDGEMENTS

Many thanks to Python, Flask and other good stacks.

Bitdeli Badge