I have just set up my new mac book to carry out some mean.js development work. I had never set up a a mac to do this before, so thought I would just quickly note down the steps for future reference. I have previously posted about how to install mean.js on ubuntu my preferred development platform. In this post I will provide the steps I undertook to install mean.js on my macbook.
Mac OS doesn’t come pre-packaged with a package manager, similar to apt-get or yum on linux. However, there is one available. Homebrew , an easy to install and only requires you to run the following command in your terminal window.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Installing node.js on the mac is super easy, just navigate to the node.js website and hit the install button. There were no further complications.
Grunt is essential if you’re going to use Mean.js so it is worth while installing it globally on your machine
sudo npm install grunt-cli -g
Now that we have Homebrew installed installing MongoDB is super easy. All the is required is:
brew install mongodb
mkdir -p /data/db
chown `id -u` /data/db
Running a quick test to ensure mongo is running
MeanJS makes heavy use of the YeoMan generator. We’ll also install Bower and Grunt, which are the build and packaging tools used by MeanJS.
npm install -g yo bower grunt-cli gulp
Install the MeanJS generator
The generator will help you create a MEAN.JS application, a CRUD module, Angular Module, and other AngularJS/Express entities. We’ll begin with the application generator.
npm install -g generator-meanjs
Your environment is now all completely setup. You are now able to generate a new project and continue developing. If you need assistance with this check out Get up and running with mean.js
A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.