-
Notifications
You must be signed in to change notification settings - Fork 5
OLD setup
John Adams edited this page Jul 21, 2015
·
1 revision
This site uses Sinatra framework to run the Ruby code. To get started on a Linux or OS X box:
- Rbenv
- Ruby 2.2.2 or higher
- Bundler
- The code
Installation instructions for rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
rbenv install 2.2.2
Bundler helps manage Ruby dependencies effectively.
gem install bundler
Clone the GitHub code into a folder of your choice.
git clone https://github.com/DFID/devtracker-from-api.git
This will pick up the Ruby dependencies from our Gemfile.
cd devtracker-from-api
rbenv local 2.2.2 #set the ruby version to 2.2.2
cd site
bundle install #installs all the gemfiles needed
Either
ruby devtracker.rb
or if you are using rerun
rerun 'ruby devtracker.rb'
Doing an API Mashup with Sinatra by EngineYard