fredag 29 januari 2010

Setting up Mac OS X Snow Leopard for Django/Couchdb RESTful development

For starters, get Xcode and MacPorts if you don't have it. This step will take you a while if don't already have this installed.

http://developer.apple.com/tools/xcode/
http://www.macports.org/install.php

Second, as a rule of thumb, do a selfupdate of mac ports before you start dabbling with it.

>sudo port selfupdate
>sudo port upgrade outdated

Then, get the following ports; couchdb, mod_python26 (if python -V says you're using 2.6, which it currently should). This could take some time, because there are quite a few dependencies.

>sudo port install couchdb mod_python26

While you do this. Consider what other kind of development tools you like, like code editor and so forth. I'm trying Espresso for the moment, a nice looking animal that I got through the last MacHeist. I'm leaving it to you to find your own way.

Next, load the python-module in you apache installation. After you installed the port, the install script says how to do it.

Here comes a manual scary step. Install Django. Do it like they tell it...

http://www.djangoproject.com/download/

More to come soon when I have had time to go further myself... =)