Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Swiss Tournament Generator

First of all, you must install some software in your computer:

Installation Git docs | download | Virtual Box docs | download| Vagrant docs | download

Steps:
  1. Open terminal:
  • Windows: Use the Git Bash program (installed with Git) to get a Unix-style terminal.
  • Other systems: Use your favorite terminal program.
  1. Change to the desired parent directory
  • Example: cd Desktop/
  1. Using Git, clone the VM configuration:
  • Run: git clone http://github.com/udacity/fullstack-nanodegree-vm fullstack
  • This will create a new directory titled fullstack that contains all of the necessary configurations to run this application.
  1. Move to the vagrant folder by entering: cd fullstack/vagrant/
  2. Using Git, clone this project:
  • Run: git clone https://github.com/JaviMelo/tournament.git tournament
  • This will create a directory inside the vagrant directory titled tournament.
  1. Run Vagrant by entering: vagrant up

    Usage:

Once the installation steps are complete, you are ready to connect to the Vagrant box. To connect:

  1. Log into Vagrant VM by entering: vagrant ssh
  2. Move to tournament directory by entering: cd /vagrant/tournament/
  3. Create the tournament database by entering: psql -f tournament.sql

Note: You can run psql -f tournament.sql at anytime to completely delete the database and start over.

  1. If you would like to test the database against Udacity's criteria, enter: python tournament_test.py

Note: To clear the database after running tournament_test.py, you can either call the deletePlayers() and deleteMatches() functions or refer to step 3.

  1. Launch Python command line by entering python
  2. Import tournament by entering: import tournament
  3. Execute a desired function.

Enjoy!

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages