Skip to content

jdesilvio/t206api

Repository files navigation

T206 REST API

Getting started

  1. Build environment

    docker-compose build

  2. Start containers

    docker-compose up

  3. Go into app container

    docker exec -it t206api_web_1 bash

  4. Import data

    python manage.py load_data

Management scripts

python manage.py --help

Database Migrations

Uses Flask-Migrate

# Initialize database
env/bin/flask bd init

# Create migration
env/bin/flask db migrate

# Apply migration
env/bin/flask db upgrade

About

T206 Data API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages