These instructions are written assuming Mac OS X install.
# Homebrew - http://brew.sh/
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
# Git - http://git-scm.com/
brew install git
# Pow to serve the app - http://pow.cx/
curl get.pow.cx | sh
brew update
# rbenv and ruby-build - https://github.com/sstephenson/rbenv
brew install rbenv ruby-build
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
# ruby (.ruby-version default)
rbenv install
# bundler gem - http://bundler.io/
gem install bundler powder
Consider forking the repo if you plan to make changes, otherwise you can clone it:
# ssh repo syntax (or https `git clone https://github.com/PRX/PRX.org-Backend.git prx-backend`)
git clone git@github.com:PRX/PRX.org-Backend.git prx-backend
cd prx-backend
# bundle to install gems dependencies
bundle install
# copy the config
cp config/application.yml.example config/application.yml
# create test database
mysqladmin create prx_test
# run tests
bundle exec rake
# pow set-up
powder link
# see the development status page
open http://prx-backend.dev
# see the api root json doc
open http://prx-backend.dev/api