Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 660 Bytes

File metadata and controls

26 lines (21 loc) · 660 Bytes

flask-tutorial

Following the official Flask tutorial here. It is a simple blogging application with a RESTful API that allows adding/authenticating users, and CRUDing blog posts.

Requirements

  • Python 3.7
  • SQLite 3

Setup

pip install -e .
FLASK_APP=flaskr FLASK_ENV=development flask init-db

Run

FLASK_APP=flaskr FLASK_ENV=development flask run

Tests

Make sure you have installed pytest and coverage with pip. After that, just run pytest in the terminal to run the tests :)

In order to check the coverage

coverage run -m pytest
coverage report