This is the minimum necessary to get an apostrophe project up and running in OS X Mavericks. This was tested on a new MBP with no software on it. Here's what this covers:
- Homebrew (for easy installing)
- Git
- Node (& npm)
- Mongo
- Imagemagick (for image manipulation- required by Apostrophe)
You should install Xcode before going through this process. Homebrew may ask you to install the Xcode Command Line Tools, which can be installed by going to Xcode -> Preferences ... -> Downloads.
Open a terminal window. Anything formatted like this
is meant to be run in a terminal prompt.
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
brew install node
We'll need to add node's directory to our $PATH in order for it to work its magic. Create a bash profile if you don't have one already, and then open it in TextEdit:
touch ~/.profile && open ~/.profile
In this new file, add these two lines:
export NODE_PATH="/usr/local/lib/node"
export PATH="/usr/local/share/npm/bin:$PATH”
You should verify that this worked by opening a new Terminal tab and running:
echo $PATH
It should echo the path that you added as a set of colon-separated values.
NPM may or may not have been installed with Node. Try:
npm
and if you get a 'not found' kind of error, run this:
curl https://npmjs.org/install.sh | sh
brew install git
brew install mongo
During the mongo install, it will print out instructions for starting mongo on login (recommended for developers), which should look like this:
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents
Then to load mongodb now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
Or, if you don't want/need launchctl, you can just run:
mongod
Run those, open a new tab and try:
mongo
It should start an interactive mongo prompt. ctrl+c to exit.
brew install imagemagick
Done!
Is it possible to install Apostrophe without Mavericks? Still running 10.6.8, trying to keep resources as free as possible.