Skip to content

CrvcMaestro1/tdd-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask TDD

Environment variables

set FLASK_ENV=development
set FLASK_CONFIG=development

Commands

Without docker

Run without docker

python manage.py flask run 

Docker

Run with docker

python manage.py compose up -d

Stop

python manage.py compose down 

Explore in container bash

python manage.py compose exec web bash

Create database (in web bash)

python manage.py create-initial-db

Database initialisation (in web bash)

python manage.py flask db init

Database

Database migrate and upgrade (in web bash)

python manage.py flask db migrate
python manage.py flask db upgrade

Explore database

python manage.py compose exec db psql -U postgres

Test

Run tests

python manage.py test

Scenarios

Up scenario

python manage.py scenario up foo

Down scenario

python manage.py scenario down foo

Releases

No releases published

Packages

No packages published