Step 1: The First step install yo scaffolding tool globally using npm. Please make sure user have enough permission to install the packages globally else user need to install these package as sudo.

npm install -g yo

Step 2: Once yo get installed, User need to install Mean.js generator in their machine and it also needs to installed globally.

npm install -g generator-meanjs

Step 3: Now you need to create your application, run the following command which will ask series of questions lets go with default for this case but you can update the details based on your application.

yo meanjs

Once all the data entered, it will fetch the boilerplate code from GitHub and it will do npm install and bower install which will install all the server side and client side dependencies. You don’t need to manually do an installation of node and client packages.

If you face any error while npm or bower installation then does npm install and bower installs manually.

Once Installation is successful, Our application is ready for the first run. Please make sure MongoDB is up and running on your machine.

Step 4: Run the application. Run the following command to start the application.

grunt

Above command will start the application and when you hit http://localhost:3000/ in your machine you can able to see following web page getting rendered in your browser.

Now you have successfully started running your application. Grunt is the Javascript task runner which will perform some tasks like code cleanup and alignment checks then it will kick-start the application. Even you can use Gulp for running your application.

This code contains predefined functionalities like the sign in, signup and so on features already implemented based on coding standards so you can directly use these functionalities and you can build your application on top of this stack. I believe you can build this application within an hour without much struggle.

Happy Coding!!

If you enjoyed this article, Please share it with your developer friends and in social media.