Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.17 KB

readMe.md

File metadata and controls

40 lines (32 loc) · 1.17 KB

About

A sample Blog application made with Python Flask v2.3.3, Jinja2 v3.1.2 and Bootstrap v5.3.2

Using Bootstrap for relieving pain writing css. A few practice borrowed from Node.js + EJS stack, such as:

  • using different layouts for different pages
  • introduced controllers (that of MVC) to take over request processing and response sending

How to init database and run app

Activate virtual env

source ./venv/bin/activate

Run application in debug mode

flask init-db
flask run --debug

Features

Links

Markdown Cheatsheet Example of Flask App

How to run tests &

Can't just run pytest, have to run pytest as a module in python (which adds the current directory to sys.path). Read More

python -m pytest -vv

or

coverage run -m pytest
coverage report

Database Stuff