UEMS internal service for people data
Install RVM if you do not have it in 2013.
$ curl -L https://get.rvm.io | bash
Clone this repo and enter into it
$ git clone [email protected]:uems/people.git
$ cd people
If RVM is working correctly, it should install and enable a uby 1.9.3 for you right after you enter the directory.
people$ rvm current
ruby-1.9.3-p286@uems
Now that you have the right version of ruby in use, let bundle do its magic and install all the dependencies (this might take a while the first time around).
people$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Installing rack (1.5.2)
Installing rack-protection (1.5.0)
Installing tilt (1.4.1)
Installing sinatra (1.4.3)
Using bundler (1.2.1)
[...]
To add a new dependency, simply add it to the Gemfile and run a bundle install again. This will in turn generate a Gemfile.lock file, which has all the versions of gems locked up, giving you a clean and predictable gemset to work with.
people$ bundle exec shotgun
== Shotgun/WEBrick on http://127.0.0.1:9393/
[2013-09-11 02:02:54] INFO WEBrick 1.3.1
[2013-09-11 02:02:54] INFO ruby 1.9.3 (2012-10-12) [x86_64-darwin11.3.0]
[2013-09-11 02:02:54] INFO WEBrick::HTTPServer#start: pid=46181 port=9393
Then point your browser (or curl) at http://localhost:9393.