I am assuming you're running a fresh install of OSX Yosemite. If there are any problems, the errors are usually detailed enough to figure out what to do next or what to Google.
- Install Xcode CLI tools:
xcode-select --install
- Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Run
brew doctor
and make sure your system is ready to brew! - Install RVM:
\curl -sSL https://get.rvm.io | bash -s stable
- You might need to restart Terminal or manually reload sources after
- Install Ruby using RVM:
rvm install ruby
- Optional: Turn off document installation with gem.
echo "gem: --no-document" >> ~/.gemrc
- Install Rails:
gem install rails
- Install Git (might not be needed if you already have git):
brew install git
git config --global user.name "Your Full Name"
git config --global user.email "YourEmail@Address"
- Install PostgreSQL (only needed for the libraries):
brew install postgresql
- From your fork (make one if you haven't), clone the repository to your desired work directory.
- Install Rails project dependencies:
cd ivote/rails
andbundle install
- Finally we get to run something, run ivote server:
rails s
- Visit
http://localhost:3000
, the api server is now running.