Skip to content

Example app for PyCon 2018 Docker for Data Science tutorial.

Notifications You must be signed in to change notification settings

docker-for-data-science/talkvoter

Repository files navigation

TalkVoter

Todo

  • Need better name
  • Add MakeFile
  • Add API and DB documentation
  • Create Backend
  • Create Frontend

Instructions

  1. Install Docker
  2. Clone repo

Migrations

Create

make migration m='migration message'

Run

make up
make migrate
make load_talks
make superuser username=myuser password=insecure

Makefile Commands

Makefile for managing web application

Usage:
 make build      build images
 make up         creates containers and starts service
 make start      starts service containers
 make stop       stops service containers
 make down       stops service and removes containers

 make migrate    run migrations
 make migrate_back  run reverse migrations
 make test       run tests
 make test_cov   run tests with coverage.py
 make test_fast  run tests without migrations
 make lint       run flake8 linter

 make attach     attach to process inside service
 make logs       see container logs
 make shell      connect to app container in new bash shell
 make dbshell    connect to postgres inside db container
 make load_talks Load Talk data into Talks table from data/talks_db_dump.csv
 make superuser username=myuser password=insecure

Overriding Default Docker-Compose Settings

Create a docker-compose.override.yml as follows:

# docker-compose.override.yml
version: '3.4'
services:
  app:
    ports:
      - 8001:8000

Additional information.

About

Example app for PyCon 2018 Docker for Data Science tutorial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •