Setting up latest Homebrew, Git, Postgres, RVM, and Rails in 15 minutes

One of the most crucial steps for software development is setting up your dev environment.

I’ve had to do this 5 times in the past month due to getting a new laptop, starting at XO Group and teaching 3 different friends how to code.  The setup is generally quick (~15 minutes), but each time I spend just as long searching around for the different links and instructions.  So finally I’ve decided to just compile the steps here.

The setup is for: Homebrew, Git, Postgres, RVM, Ruby, and Rails.  They’re version independent, so this blog post should be future proof (which in engineering means about 6 months).

Step 1:  Fire up terminal.  I like to do that by holding down ‘cmd+space bar’ to fire up spotlight, then typing “terminal” and hitting enter.  Another option is to just click on the magnifying glass at the upper right corner of your screen.

Step 2:  Paste the following commands into terminal and follow the instructions that pop up to open the gateway to Rails developer heaven

Homebrew

ruby -e “$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)”

Git

brew update
brew install git

Setup SSH for Github

https://help.github.com/articles/generating-ssh-keys

Postgres

http://postgresapp.com/

RVM / Ruby / Rails

\\\\\\\\\\\\\\\\curl -sSL https://get.rvm.io | bash -s stable –rails

 

 

Also read...

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>