Skip to content

lem0n4id/flask-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

27cdfc2 · Oct 26, 2021

History

10 Commits
Oct 25, 2021
Oct 25, 2021
Oct 26, 2021
Oct 25, 2021
Sep 24, 2021
Sep 24, 2021
Oct 25, 2021

Repository files navigation

Flask - python

This is a repo where i learn flask from scratch and build my own boilerplate code.

Features-

  1. Use of templates - jinja2 syntax to extend from base.html
  2. tests in tests.py to test your flask app. Module used- unittest

File structure-

learn-flask
├─── static/
│    └─── style.css
├─── templates/
│    ├─── base.html
│    └─── index.html
├─── .gitignore
├─── app.py
├─── README.md
├─── requirements.txt
└─── test_client.py
Note - This is for small applications but as you scale up, you'll need something more like:
learn-flask
├─── app/
│   ├─── __init__.py
│   ├─── app.py
│   ├─── templates/
│   │    ├─── base.html
│   │    ├─── index.html
│   └─── static/
│        └─── style.css
├─── tests/
│    ├─── test_client.py
├─── setup.py
├─── README.md
└─── requirements.txt