MEAN.JS Stack Installation on Ubuntu 14.04

References: https://www.ostechnix.com/install-mean-js-stack-ubuntu/
local: http://myprojects.advchaweb.com/index.php/2016/08/24/my-ubuntu-14-04-and-apps-installation-error-and-solution/

MEAN.JS is an Open-Source, full-Stack JavaScript solution for building fast, and robust web applications.

MEAN.JS  stack consists of the following:
MongoDB – NoSQL database.
Express – NodeJS server-side application web framework.
AngularJS – Client-side web application framework.
Node.js – JavaScript run-time, popular for being a web server platform.

I already installed almost all components needed in http://myprojects.advchaweb.com/index.php/2016/08/24/my-ubuntu-14-04-and-apps-installation-error-and-solution/.
Node:

npm:

MongoDb:

Bower:

Grunt:

Gulp:

OK. Now download and install MEAN.JS Stack (I put them in /Documents/node/ directory):

Go into the new directory created ‘meanjs’

Install the nodejs dependencies (it’ll take time):

Once all dependencies are installed, run the following command to install all the front-end modules (angularjs) needed for the application.

THERE IS SOME CONFUSION WHEN I TRIED TO RUN ‘grunt’ BECAUSE I ALWAYS GOT THIS MESSAGES

I TRIED TO FIND THE SOLUTION ON THE INTERNET (STACKOVERFLOWS: http://stackoverflow.com/questions/13925916/fatal-error-unable-to-find-local-grunt?rq=1, http://stackoverflow.com/questions/15483735/fatal-error-unable-to-find-local-grunt-when-running-grunt-command?noredirect=1&lq=1, http://stackoverflow.com/questions/41989435/fatal-error-unable-to-find-local-grunt-despite-grunt-installed-locally) OR https://github.com/gruntjs/grunt-cli/issues/101, I ALSO DID THID

or did this ‘npm init’

BUT ‘grunt’ NEVER WORK!!!
SOLUTION: I SHOULD USE ‘gulp’ INSTEAD OF ‘grunt’ (OR I THINK NO NEED TO USE ‘grunt’ ANYMORE???)

OR JUST TYPE ‘node server’ IS SAME!

NOW IT WORKS (http://localhost:3000/)NOTE: I ALSO ALREADY INSTALLED MEAN-CLI

THAT I CAN CREATE A NODE JS PROJECT LOCALLY WITHOUT HAVE TO DOWNLOAD/CLONE FROM GITHUB??? mean-cli FROM LINNOVATE??? LET’S GIVE A TEST! I WANT TO CREATE ‘test-project’:

Go into ‘test-project’ directory:

Install the dependencies (take a long time):

Then run ‘gulp’ to run the server

OR run ‘node server’

HERE IS THE LOOKS (http://localhost:3000/)WHICH ONE I SHOULD CHOOSE????
WHY THE PROJECTS SIZE IS VERY BIG (MORE THAN 250MB EACH)???
HOW ABOUT MERN VS MEAN ??? (R=ReactJS INSTEAD OF A=AngularJS) Pros AND Cons???

Leave a Reply

Your email address will not be published. Required fields are marked *