Environment Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Get started with node, install the following tools:
Latest version of Ruby (for Sass, and other tools) Node.js, PostgreSQL, MongoDB, Redis,
Editors: or .
Homebrew 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 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:
is my personal favorite but a lot of developers choose Sublime Text 3:
Package Control:
Redis
brew install redis
same as above, you don't need it to start at login
PostgreSQL
NOTE you DO NOT have to buy a digital ocean server, this is instructions for how to install LOCALLY. Ignore the create a server droplet step.
NOTE replace 1.9.3 with the latest version of ruby: 2.1.0
gem install sass // DO NOT use sudo to install gems
PostgreSQL
Sublime Text 3
NOTE you DO NOT have to buy a digital ocean server, these are instructions to install LOCALLY. Ignore the create a server droplet step.
Heroku Toolbelt - sudo apt-get install heroku-toolbelt
Here is another resource for installing ruby on rails:
You can follow this once you are ready.
No need for homebrew you already have a perfectly good .
In your terminal preferences make sure that "Run Command as a login shell is an enabled profile preferences" check these two screenshots:
rbenv, ruby-build, and ruby:
node.js:
Follow this blog post:
MongoDB -
Redis - same as above
To set up your local dev follow this .
how to install Ruby on Rails.