Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irsol/tournament-planner
Udacity Intro to Programming: Final Project
https://github.com/irsol/tournament-planner
fullstack postgresql psycopg2 python sql test tournament-planner udacity-fullstack-nanodegree vagrant
Last synced: about 1 month ago
JSON representation
Udacity Intro to Programming: Final Project
- Host: GitHub
- URL: https://github.com/irsol/tournament-planner
- Owner: irsol
- Created: 2017-04-23T16:24:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T11:25:59.000Z (almost 7 years ago)
- Last Synced: 2023-09-24T08:44:55.046Z (over 1 year ago)
- Topics: fullstack, postgresql, psycopg2, python, sql, test, tournament-planner, udacity-fullstack-nanodegree, vagrant
- Language: Python
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tournament Planner
A Python module that uses the PostgreSQL database to keep track of players and matches in a game tournament.
The game tournament will use the Swiss system for pairing up players in each round: players are not eliminated, and each player should be paired with another player with the same number of wins, or as close as possible.
### Prerequisites
This projects requires Vagrant virtual machine and cloned **fullstack-nanodegree-vm** repository, which comes with _Python 2.7_, _psycopg2_ and _PostgreSQL_ pre-installed.
### Project structure
Inside the tournament directory in Vagrant VM in folder `/vagrant/tournament` you'll find the following files:
* tournament.py
* tournament.sql
* tournament_test.sql
* README.md### Usage
1. First we need to start Vagrant and connect to the VM by using following commands:
```bash
vagrant up
vagrant ssh
```2. Open a folder the project:
`cd /vagrant/tournament/`
3. Create a database and all necessary tables:
`psql -f tournament.sql`
4. Execute unit tests:
`python tournament_test.py`
Successful execution will be folled by **Success! All tests pass!** message.