This weekend I decided to get MongoDB up and running. Setting up the environment was very simple using MacPorts. Just make sure you’ve got the Java Developer Package for Mac OS X. A simple $ sudo port install mongodb and I was up and running. I’d recommend setting up a shell alias for starting the mongo listener and connecting to a mongo db in your .bash_profile located in the root directory. Mine looks like this:
alias startmongo='/opt/local/bin/mongod'
alias runmongo='/opt/local/bin/mongo'
What can I say, I’m lazy.