In a rush? All Flask boilerplates mentioned in this article are published on Github. Happy coding!
What is a Boilerplate
In programming, boilerplate code is a piece of software that can be reused over and over without changing a single line of code. The whole idea behind a starter (sometimes boilerplate code) is to skip coding that piece of code common to many projects.
Using a boilerplate or a starter, can help you to speed up a little the development by reusing a basic set of features like authentication, the project structure, UI preparation and common helpers.
For instance, all Flask Apps referenced in this article are generated by the AppSeed service using a common workflow:
- Phase #1 - The flat HTML is parsed and prepared for various template engines (PUG, Jinja, Blade) - read more about the HTML parser we are using
- Phase #2 - The processed themes are injected in boilerplates coded for various languages and patterns: Flask, NodeJs, Laravel, JAMstack
Off course, using boilerplate code is not suitable for any project, and really depends depends from case to case. In case when using a boilerplate is suitable for you, feel free to access our free list with boilerplate and starters, actively supported and improved to follows latest technology trends.
Flask Boilerplates - Features
All apps listed on this page, are using the same code-base, enhanced with a common set of features, modules and basic tooling:
- SQLite database
- ORM: SQLAlchemy
- Authentication flow: login & register
- Static export - via Flask-Frozen, an useful module that helps you to export Flask apps as static websites
- FTP live deploy - a simple script that allows you to upload the static version of a Flask app, to a live system via FTP.
- License: MIT
How to build from sources:
$ # clone the repo $ git clone https://github.com/app-generator/flask-material-kit.git $ cd flask-material-kit $ # install the dependencies $ pip install -r requirements.txt $ # create the database (using Flask shell) $ flask shell $ >>> from app import db $ >>> db.create_all() $ flask run $ # App is running on http://localhost:5000
Where to go from here?
- See more Flask apps generated on top of of boilerplate code supported by AppSeed
- Read how we've released 100+ open-source apps using automation tools and boilerplate code - article published on @Medium