No Flask-SQLAlchemy, no ORMS, no Flask-WTF, no Bootstrap.
Simple layout, with Flask + Blueprints.
| .gitignore
| LICENSE
| Procfile
| README.md
| requirements.txt
|
\---project
| config.py
| __init__.py
|
+---errors
| routes.py
| __init__.py
|
+---main
| routes.py
| __init__.py
|
+---static
| style.css
|
+---system
| models.py
| __init__.py
|
\---templates
| index.html
|
+---base
| base.html
| error_base.html
|
\---errors
404.html
-
Clone the flask-boilerplate repository.
$ git clone https://github.com/realpython/flask-boilerplate.git $ cd flask-boilerplate
-
Initialize a virtual environment for packages.
[Powershell] > python -m venv venv > venv/Scripts/activate [Bash] $ python -m venv venv $ source venv/bin/activate
-
Install the dependencies.
$ pip install -r requirements.txt
-
Set up the flask variables.
[Powershell] > $env:FLASK_APP = "project" [Bash] $ export FLASK_APP=project
-
Run the flask application.
$ flask run
Licensed under the MIT License - see the LICENSE file for more details