flaviohenriquecbc / tournament-postgree-vagrant-python

Tournament Project for Udacity Full Stack Nanodegree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flavio's Blog

Built a PostgreSQL relational database scheme to store the results of a game tournament. Also provided a number of queries to efficiently report the results of the tournament and determine the winner.

Requirements

From a GitHub shell:

$ cd fullstack/vagrant
$ vagrant up (you can turn off the VM with 'vagrant halt')
$ vagrant ssh (from here you can type 'exit' to log out)
$ cd /vagrant/tournament
$ psql -f tournament.sql
$ python tournament_results.py

Running the project

  1. Clone the project
  2. Run the sql queries from tournament.sql
  3. Run the following unit tests code:
    $ python tournament_test.py

Tadaa! You have the tournament working according to the unit tests

References

[1] https://en.wikipedia.org/wiki/Swiss-system_tournament

About

Tournament Project for Udacity Full Stack Nanodegree


Languages

Language:Python 100.0%