MEAN.JS is a full-stack JavaScript solution that helps you build fast, robust and maintainable production web applications using MongoDB, Express, AngularJS, and Node.js.  It is a great tool for framework for really accelerating your web development process making use of the MEAN stack.

Judging by the myriad of blog posts out there, it appears most of the developers out there using the MEAN stack are predominantly using MacBooks etc. However, this doesn’t mean you can’t develop using the mean stack on Linux. There are just a few tweaks you need to do to get it running.

Install MongoDB and Node.js on your ubuntu desktop;

In order to make life easier I have created a quick bash script to install all necessary components to get up and running with meanjs. After executing the bash script you can go directly to Get a project up and running with mean.js

In order to use the mean.js you will need to install the yeoman generator , which is a scaffolding tool for web applications. Yeoman helps you kickstart new projects, prescribing best practices and tools to help you stay productive.

This is will install the generator and you’re almost ready to install Mean.js, however in order to get yeoman to work on your ubuntu machine there is one little hack you need to do.  Yeo man needs to run using your superuser permissions, so you need to create a bash script for it to do so.

Once you’ve done that you can run simply run the yeoman generator,

Install Ruby

Install Sass

Get a project up and running with mean.js

Although we have completed a few basics on how to generate a project with mean.js, there as still a few little quirks to remove friction points on your ubuntu desktop. I’ll guide you through a process of how I successfully got this to work.

I’ll create a little demo project and use my favourite IDE WebStorm by jetbrains

First step is step is to create a directory for your project and then change directory

Secondly generate your meanjs project

The generator will now start and you will need to answer some basic questions about your application.

yeoman generator

Complete your basic questions with relevant details


The generation should now complete


You can now open you project in WebStorm

meanjs4You now need to open your terminal window in WebStorm ( alt + f12)

Just check your npm version to ensure you have he latest version , at the time this was 1.4.28


Now install the bower based dependencies into your project, you may need to install bower globally first.

now you should be able to run grunt and start the website

Open your browser and navigate to http://localhost:3000 , you should see the default generated for you.


The guys over at have put together a great video tutorial explaining how to use mean.js. I recommend watching this, not only is it entertaining in a geek way, but it is also has some very useful tips!

Mean.js also has some really good documentation to read to get you up to speed. Check it out on

Have fun playing around with mean.js and please do let me know if you have any more questions or even if you have some additional tips, in the comment section below.

Gary Woodfine

Freelance Full Stack Developer at
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.

Affiliate Disclaimer

Disclosure: Please note that some of the links included in the blog posts are affiliate links, which means I will earn a commission if you decide to make a purchase.

I only include affiliate links to products, services and companies that I have personal experience and have actually used. I only recommend them because they are helpful and useful, not because of the small commissions I make if you decide to buy something.

Please do not spend any money on these products unless you feel they are relevant, suitable and will help you achieve your goals.

Buying anyone of these products and the commisions earned will not make me an overnite multi millionaire, but they will help to cover the hosting costs and compensate for the countless hours and effort I put in to create meaningful and valuable free content I provide to help others succeed.

You've also undoubtedly noticed that I also use various advertising networks - unless of of course you're using an Ad blocker, this is also an attempt to reduce my monthly deficit I experience in providing free relevant, valuable and on occassion insightful content for the benefit of others.

I only really make some money if people click on the ads, unless of course you consider 1c per 1000 impressions real money!

Bear in mind just how many impressions I need to make before I can cover my £20 hosting costs a month!

If you are using an adblocker and guilt stricken you can of course donate using any of the buttons below, but I won't be holding my breath.

Buy me a coffeeBuy me a coffee