Skip to content

Configuring your development environment

vtiffenberg edited this page Sep 8, 2014 · 1 revision

Even though we provide examples of how to set up the environment on Mac OS X, most of the steps are analogous on Linux. For example, in most cases while we use "brew" to install components on OS X, we'd use "apt-get" on Ubuntu. So, even if you're using Linux this guide may help you put all the pieces together to start developing Resource Map. If you're using Windows... well, you're brave, good luck with that :).

Install Homebrew (only OS X users)

Find the instructions at: http://brew.sh/

Install Mercurial

brew install hg

Clone Resource Map

hg clone https://[email protected]/instedd/resource_map

Install rbenv

brew install rbenv

Install ruby-build

brew install ruby-build

Install or upgrade Ruby

Run:

rbenv version

If you get a "rbenv: version `Xxx' is not installed" you'll need to install the appropriate Ruby version. To do that run:

rbenv install
rbenv rehash

Update RubyGems

gem update --system

Install Bundler

gem install bundler

(You may need to run this one with sudo).

Install project gems

bundle

Setup Database

rake db:setup

Start Resource Map on port 3000!

bundle exec rails s