Environment Setup

Get started with node, install the following tools:

Latest version of Ruby (for Sass, and other tools) Node.js, PostgreSQL, MongoDB, Redis,

Editors: Atom.io or Sublime Text.

Mac OS:

  • Homebrew http://brew.sh Note: the instructions are at the end of the web page.

  • rbenv, ruby-build, ruby 2.1.0 and the sass gem

    • brew doctor

    • brew update

    • brew install rbenv ruby-build rbenv-gem-rehash

    • echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

    • echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

    • rbenv install 2.1.2

    • rbenv global 2.1.2

    • gem install sass

    • Don't use sudo to install ruby or gems

    • If you get a permissions error when installing sass, somehow system ruby is still active. Try restarting your terminal, or if it persists, check for the items above in your .bash_profile

  • Node.js

    • brew install nvm

    • nvm install 0.10

    • nvm alias default 0.10

    • add source $(brew --prefix nvm)/nvm.sh to your .bash_profile or .zshrc

    • Reference the NVM README if you get stuck

  • MongoDB

    • brew install mongodb

    • You may not want it to start at login, it's pretty easy to just run mongod when you need it.

    • Skip the instructions after the installation and create the db folder in your the root directory of you project. Then open a new terminal tab and run mongod --dbpath ~/data/db to start MongoDB.

    • After that open a second terminal tab and start MongoDB with mongod

  • Heroku Toolbelt

    • brew install heroku-toolbelt

  • Git

    • brew install git

  • Pick a programmer's editor:

Optional Installs until needed.

  • Redis

    • brew install redis

    • same as above, you don't need it to start at login

  • PostgreSQL

    • You can follow this post once you are ready.

Ubuntu:

Arch Linux and Manjaro

To set up your local dev follow this tutorial.

Here is another resource for installing ruby on rails:

DigitalOcean how to install Ruby on Rails.

Last updated

Was this helpful?