Udacity Full Stack Web Development - Project 2: Tournament Results
This is my second of a series of projects through Udacity's Full Stack Web Development course, through which I have been learning Python and SQL. For this project I have developed a database schema to store game matches between players. Python is then used to rank players and pair them up in tournament matches.
- tournament.py : Contains installation of Swiss-style tournament
- tournament.sql : Database Schema
- tournament_test.py : Test cases for tournament.py
- Install Vagrant and VirtualBox
- Clone this repository into vagrant folder
- Launch the Vagrant VM
- Open shell and navigate to vagrant folder
- Type
vagrant up
- SSH into the Vagrant VM
- Type
vagrant ssh
- Type
- Navigate to the correct folder ie
cd /vagrant/tournament
- Open PSQL and initialize the tournament databse
- Type
psql
- Type
\i tournament.sql
- Type
\q
to leave PSQL
- Type
- Run unit tests of tournament.py
- Run the python test script by typing
python tournament_test.py
- Run the python test script by typing