Skip to content

jeopard/flask-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Flask tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published