winnipegrb / winnivote

Winnivote is a website to submit topics/ideas and vote to show which ones are more popular
MIT License
10 stars 12 forks source link

Winni Vote

Build Status

Description

Winnivote is a website to submit topics/ideas and vote to show which ones are more popular.

Goal

Use the development of Winnivote as a common topic for all the participants of the Winnipeg Ruby User Group so each meeetup a volunteer will show a feature or two that has been implemented.

Guidelines

As a learning experience, part of the goal is to use, highlight and learn good coding practices around the RoR world and programming in general.

Practices

Tools

Getting Started

Code

Check out the code first

git clone https://github.com/winnipegrb/winnivote.git

Alternatively, go to https://github.com/winnipegrb/winnivote, fork it, and clone your own copy

Using Vagrant (optional)

  1. Install VirtualBox
  2. Install Vagrant
  3. Update submodules git submodule update --init --recursive
  4. Run vagrant up
  5. vagrant ssh
  6. cd /vagrant

Configuring the app and running it

bundle install
bundle exec rake db:migrate
bundle exec rails s

Running the tests

  1. Install PhantomJS. It is a pre-requisite to running the feature specs.
  2. Run: bundle install to install all the gems for the project.
  3. Run: bundle exec rake db:migrate && bundle exec rake db:test:prepare to set up the test database.
  4. Run: mkdir -p tmp/cache
  5. Run: bundle exec rspec to run all the tests.