Trivia application built with Python Flask.
- Clone and cd into this repository
- Set the environment variables:
DB_HOST
('localhost' should work), or alternativelyDB_URL
- Run
pip install -r requirements.txt
- Turn on your local redis server if that is the case
- Run
python app.py
In order to populate the initial database, you may run python seed.py
.
# 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/seed.py
The server's machine should now be redirecting its port 80 to the container's port 5000.