DanHolloran
Dan Holloran
Dan Holloran 26 Aug 2015

I have a few posts in mind that require a few of the same steps so I figured I would catalog them here. These should be things every developer regardless of wether you are more of a front end or backend developer. They are extremely easy to get setup now more than ever. There was once a point where I have to fight and wrangle some of these tools I'm looking at you PHP. The upside to having these few base things installed is adding tools like Bower front end package management, Grunt/Gulp/Broccoli for task running and Sass for making CSS more fun. So here we go lets install all the things!!!

Environment Setup

Everything with a $ should be ran in the terminal without the ($).

Node.js

Install Node.js.

# Verify Node is installed
$ node -v

# Verify NPM is installed
$ npm -v

Ruby

Ruby should be already installed in Mac OS X you can check Ruby $ ruby -v

At the time of this writing 2.x.x is fine if not you can install Ruby via RVM by following the instructions on the RVM website.

Xcode Command Line Tools

This is required to install anything that needs to be compiled from source code.

  1. Download the Xcode Command Line Tools for your version of Mac OS x. You may need to sign up for a free developer account.
  2. Install the Xcode Command Line by clicking on the downloaded package and following the install prompts.
  3. Once installed you should accept the Xcode license agreement.
    $ sudo xcodebuild -license

Git

Mac OS X should have shipped with Git by default but we might as well upgrade it.

  1. Download Git for Mac OS X.
  2. Install Git by clicking on the downloaded package and following the install prompts.
  3. Check if Git has been installed correctly.
    $ git --version

Homebrew

Install Homebrew. You can view the install instructions here.

# As of 8/24/2015
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Homebrew PHP

Tap Homebrew PHP to install helpful PHP Tools easily.

$ brew tap homebrew/dupes
$ brew tap homebrew/versions
$ brew tap homebrew/homebrew-php

PHP

Install PHP as of this writing the current stable version is 5.6.11 but you should install the current version.

# php 5.6.x === php56
$ brew install php56

Add this to your ~/.bashrc, ~/.zshrc, or other ~/.shellrc

$ export PATH="$(brew --prefix php56)/bin:$PATH"

Composer

Composer allows you to install PHP packages with ease. Much like npm for Node.js and gem for Ruby.

$ brew install composer

Wrapping Up

So that was easy wasn't it. Now you will have even less excuse to use command line tools to increase your productivity. Now you just need to switch from Bash to ZSH with OHMyZSH to really super charge your workflow.

< Previous Next >