Giter VIP home page Giter VIP logo

talkvoter's Introduction

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.

talkvoter's People

Contributors

joejasinski avatar alysivji avatar tathagata avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.