/5_a_side

Sinatra app who allows Makers to generate teams for their 5 aside matches

Primary LanguageRuby

Code Climate Test Coverage #5 A Side

Want to play a 5 a side game? Don't want to forget who said "I'm in!" and don't know how to shuffle the teams? This program will help you organise your weekly 5v5 game by keeping track of the players, teams and results!

Live Version

ball

##Technologies

Languages Front End Server Databases Testing
Ruby HTML & CSS Sinatra PostgreSQL RSpec
Capybara

##How to run it Clone the repository

SSH:
$ git clone git@github.com:matteomanzo/5_a_side.git
HTTPS:
$ git clone https://github.com/matteomanzo/5_a_side.git

Change into the directory

$ cd 5_a_side

Create the databases

$ psql
CREATE DATABASE five_a_side_development;
CREATE DATABASE five_a_side_test;
\q

Install the gems

$ bundle install

Run the tests

$ rspec

Run it locally with rackup and go to http://localhost:9292/.

##Job list

  • Store players information;
  • Randomly generate teams;
  • Will not generate the same teams twice in a row;
  • Allow players to decide whether they want to play or not.

##ToDo

  • Admin account to reset teams
  • Players who join after the teams are generated have to be balanced within the teams
  • Refactor controllers !!!

##Collaborators