neilb14 / flask-microservices-users

Flask testing project from testdriven.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Env Cheatsheet

Remember that Docker container's build context is the Github remote master branch. So you gotta push your changes and rebuild containers in order for them to work.

Variables

Set the following environment variables:

export SECRET_KEY=xxx
export DATABASE_URL=xxx
export DATABASE_TEST_URL=xxx

Tests

Run tests: python manage.py test

Database

Create the database: python manage.py recreate_db

Seed the database with some users: python manage.py seed_db

Migrations

After changing a model:

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

About

Flask testing project from testdriven.io


Languages

Language:Python 98.8%Language:Mako 1.2%