Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

sasalatart/triviapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triviapp

Trivia application built with Python Flask.

License: MIT Docker Automated build Code Climate

Setup

Development

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

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

Docker

# 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.

About

Trivia application built with Python Flask.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published