Thoughtbot's Laptop Script is an excellent place to start. Using this script removes the need to do any of the steps below except for the final one. If you plan to set up manually, install the following tools (in this order):
- Xcode Command-line tools (
xcode-select --install), or all of Xcode if running on Mac OSX 10.8 or lower - Homebrew package manager