Skip to content

Mac install

nickmartin90 edited this page Feb 11, 2015 · 1 revision

###To get things started If you don't have Homebrew, then you will need to figure out all of these steps on your own. Homebrew is a package manager for Mac.

###Install Node brew install node

###Install mongo brew install mongodb

Then, you need to make a directory on your machine where the MongoDB will actually store stuff...

mkdir -p data/db/

If you had to sudo anything up until this point, then make sure that the directory you just created (data/db/) can be modified without sudo. In other words, you may need to chmod that folder and give it permissions so you can read and write to it without sudo'ing.

You should now start mongo by running

mongod

from anywhere on your machine. This will start an instance of mongo...which you will need running when you start the node server below.

###Installing mean.io Verify that 'npm' (node package manager) is installed on your machine by typing npm. If you did a brew install node like described above, npm should be installed.

To install mean.io, you need a few prerequisites.

Grunt

npm install -g grunt-cli

Gulp

npm install -g gulp

Bower

npm install -g bower

mean.io

npm install -g mean-cli

###Launching the app Once you've cloned the repo, you should able to launch the app by navigating to into budget-tracker/ and typing grunt. Make sure you have mongo running before you start launch the app! Then, you can view the app in the browser at localhost:3000/

Clone this wiki locally