Install Mean.js on Macbook





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.

Install Homebrew

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.

Install Node.js

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.

Install Grunt

Grunt is essential if you’re going to use Mean.js so it is worth while installing it globally on your machine

Install MongoDB

Now that we have Homebrew installed installing MongoDB is super easy.  All the is required is:

Running a quick test to ensure mongo is running





Screen Shot 2015-08-13 at 00.31.09

Install Webstorm

I have mentioned before that I use Webstorm for all my javascript development, so I quickly installed it on my mac.

Note
It is not necessary to install Webstorm to use MeanJS. It is just my preferred Javascript IDE.

It is possible to use any other Text Editor or IDE i.e. Sublime Text , VIM etc

Install YeoMan

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.

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.




Generate Project

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

Gary Woodfine

Freelance Full Stack Developer at threenine.co.uk
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

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.

Latest posts by Gary Woodfine (see all)

π