WIP: The Perfect Web Dev Mac

— Will keep updating this article —

Two things happened recently — I upgraded to Mac OSX on my Macbook Pro and got a new Mac Air at work. The second is important because I don’t actually get to code much in my day job. And I can’t play around too much because I don’t have the time to break it — and fix it.

I wanted to set up the perfect web dev environment and started looking around. I intend to code in PHP (think CodeIgniter and Laravel) and learn Node.

As I went about this task, I quickly discovered that there are some hacks needed. I’ve tried to list everything out below.

Before you start, I highly recommend having iTerm installed — it replaces the default terminal in OS X and makes life a lot easier. Also, figure out which text editor you like. I’ve always been a Textmate fan, but am trying out Sublime Text.

Installing XCode command line tools

https://developer.apple.com/downloads/index.action#

Brew

/usr/bin/ruby -e “$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)”

MAMP Pro

dnsmasq

brew install dnsmasq

http://blakeembrey.com/articles/local-development-with-dnsmasq/

Composer

http://stackoverflow.com/questions/4262006/how-to-use-mamps-version-of-php-instead-of-the-default-on-osx

curl -sS https://getcomposer.org/installer | php

Laravel 4

http://raffworks.com/getting-started-with-laravel-4/

sudo chown -R www:www app/storage

Leave a Reply

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