|
| 1 | +title: Flask Core and Extensions Code Examples |
| 2 | +category: page |
| 3 | +slug: flask-core-extensions-code-examples |
| 4 | +sortorder: 50500 |
| 5 | +toc: False |
| 6 | +sidebartitle: Flask Core and Extensions Code Examples |
| 7 | +meta: Learn how to create Flask applications with easy to copy and paste Python code examples for the Flask web framework. |
| 8 | + |
| 9 | + |
| 10 | +[Flask](/flask.html) is a Python [web framework](/web-frameworks.html). |
| 11 | + |
| 12 | +<a href="http://flask.pocoo.org/" style="border: none;"><img src="/img/logos/flask.jpg" width="100%" alt="Official Flask logo. Flask Artwork License." class="technical-diagram"></a> |
| 13 | + |
| 14 | + |
| 15 | +## Flask Example Projects |
| 16 | +Flask's large ecosystem of extensions make it easier for developers to |
| 17 | +build common web app features such as authentication, |
| 18 | +[database](/databases.html) operations and |
| 19 | +[APIs](/application-programming-interfaces.html) even though support |
| 20 | +is not built into the core Flask [web framework](/web-frameworks.html). |
| 21 | +This design is by choice in contrast to [Django](/django.html)'s |
| 22 | +"batteries-included" approach. Either framework's design decision |
| 23 | +is a viable approach depending on the needs and requirements of the |
| 24 | +application you are building. |
| 25 | + |
| 26 | +The extensive collection of Flask libraries is a great source for |
| 27 | +learning the framework through reading code examples. |
| 28 | + |
| 29 | +This alphabetically-ordered list of projects provide helpful example |
| 30 | +code for building your own web apps. |
| 31 | + |
| 32 | + |
| 33 | +### flask-base |
| 34 | +[flask-base](https://github.com/hack4impact/flask-base) |
| 35 | +([project documentation](http://hack4impact.github.io/flask-base/)) |
| 36 | +is a boilerplate starter application that is pre-configured with |
| 37 | +[SQLAlchemy](/sqlalchemy.html), [Redis](/redis.html), user |
| 38 | +authentication and other features. |
| 39 | + |
| 40 | +flask-base's code is open sourced |
| 41 | +[under the MIT license](https://github.com/hack4impact/flask-base/blob/master/LICENSE.md). |
| 42 | + |
| 43 | + |
| 44 | +### Flasky |
| 45 | +[Flasky](https://github.com/miguelgrinberg/flasky) is the wonderful |
| 46 | +example application by |
| 47 | +[Miguel Grinberg](https://github.com/miguelgrinberg) that he builds |
| 48 | +while teaching developers how to use [Flask](/flask.html) in |
| 49 | +[his books and videos](https://courses.miguelgrinberg.com/). Flasky |
| 50 | +is [open sourced under the MIT license](https://github.com/miguelgrinberg/flasky/blob/master/LICENSE). |
| 51 | + |
| 52 | +Code examples from Flasky are shown on the following pages: |
| 53 | + |
| 54 | +* [flask_sqlalchemy SQLAlchemy Model](/flask-sqlalchemy-model-examples.html) |
| 55 | + |
0 commit comments