Public | Automated Build

Last pushed: a year ago
Short Description
My first Python Flask application.
Full Description


Trivia application built with Python Flask.



  1. Clone and cd into this repository
  2. Set the environment variables:
    • DB_HOST ('localhost' should work), or alternatively DB_URL
  3. Run pip install -r requirements.txt
  4. Turn on your local redis server if that is the case
  5. Run python

In order to populate the initial database, you may run python


# Pull and run the application and redis
$ docker run -d --name=redis_db redis:3.0

$ docker run -d --name=triviapp -p 80:5000 --link=redis_db:redis_db sasalatart/triviapp

# Setup the database
$ docker exec triviapp python db/

The server's machine should now be redirecting its port 80 to the container's port 5000.

Docker Pull Command
Source Repository