Setting up your development environment can be a pain. On my first attempt I spent most of the day searching google and stackoverflow trying to solve installation issues. I even tried running other people’s install scripts and my mac ended up like frankinstein with crazy customisations I didn’t need. This guide is intended to get a new OSX instance up and running for development using Ruby on Rails and Node JS. You won’t need everything I have installed just pick and choose what you need.
##Install Chrome I love using google chrome, and its the first thing I download and install on a new install of mac osx.
##Install iTerm2 iTerm2 is much better than using the standard OSX terminal.
now to add our /usr/local/bin path to our PATH environment.
##Install XCode Command Line Tools
##Homebrew
##RVM Download and install the latest stable release of RVM
Then add the rvm binaries folder to my PATH environment settings
##Upgrade Ruby By default, OSX Mavericks installs ruby version 2.0. To upgrade to the latest ruby version 2.1.1 do the following:
now to check what version of ruby our mac is running.
if it still says its on ruby 2.0 just execute the following command in your terminal.
##Install the Heroku toolbelt Heroku is a PaaS (Platform as a Service) for web applications. It allows for easy deployment of webapps to their cloud based servers and its free for development instances.
We will also need to create a ssh key and add it to our heroku account.
Now to test if its all working with heroku.
##Git and Github Installing the heroku toolbelt will also install git. To update to the latest version of git do the following:
Setup your global variables
Now to link it up to our github account and to test if its all working.
First create a myapp
repo in github.
check back on your github repo and the README file should appear.
##Install Postgres
Check if its installed correctly and is the latest version.
##Install Ruby Gems
To install Rails, just install it via ruby’s package management system.
Now to install RSPEC.
##Install node.js Although node.js is another language and framework I like to install so I can run Javascript files in terminal and using the npm packaging module I can install front end frameworks pretty easily. Download
Check if its install correctly.
Install Yeoman / Grunt / Bower
##Install Alfred To be honest, OSX’s spotlight search sucks. I love using alfred instead as you can customise it.
Install it from: here To unlock all the customised features and to build workflows you will need to purchase it.
##Dash Doc I love having dashdoc as it lets me have an offline version of documentation of the popular programming languages and frameworks.
Download it from: here
The great thing also is I can customise sublime text and alfred to lookup certain documentation.
##Sublime Text I am currently using sublime text as my text editor. Although I still use vim, I still like using sublime as its fast and customisable.
Download it: here
After this you will need to create some shortcuts for sublime and subl for your terminal.