python flask tutorial

setup projecy

  • clone repository and enter its folder

  • use python3 as env

    python3 -m venv venv
    source venv/bin/activate
  • install requirements

    pip install -r requirements_dev.txt

initializing database

export FLASK_APP=flaskr
export FLASK_ENV=development
flask init-db

launch app

export FLASK_APP=flaskr
export FLASK_ENV=development
flask run

running tests

coverage run -m pytest && coverage report -m && coverage html