Follow the steps below to create and run the default web application using MEAN.JS. MEAN is a “solution stack”, a collection of software packages commonly used to provide an infrastructure on which to run web applications. In this case, the software packages are MongoDB, Express.js, Angular.js, and Node.js.
(Please note that it’s possible there may be dependencies that must be installed with the “npm install -g” command before these instructions will work. I tried so many things before I was able to get a test MEAN application running that my development machine may have things installed on it that a fresh machine may not. This may include, but is not limited to, several npm packages like “gulp”, “grunt” and “bower”. I apologize for any inconvenience.)
1. If you have not already done so, download and install Node.js from “https://nodejs.org/en/download/”.
2. In any convenient location, create a new directory named “MEANTest”.
3. Download the MEAN.JS ZIP file from “http://meanjs.org/” into the newly created MEANTest directory.
4. Extract the MEAN.JS ZIP file into the MEANTest directory using an extraction tool like 7-Zip. Rename the extracted directory to “MEANTestApp”. Note that the MEANTestApp directory should contain many files and directories. If your ZIP extraction tool created an extra top-level directory, cut-and-paste the single subdirectory within it up to the MEANTest directory, remove the extra directory, and then rename the moved directory to “MEANTestApp”.
5. Open a command prompt, navigate to the MEANTestApp directory, then enter the command “npm install”. This command may take quite a while to complete.
6. Still in the command prompt, enter the command “gulp”, then wait for the application service to finish starting up.
7. Open a web browser and navigate to the URL “http://localhost:3000”. A page that reads “Congrats! You’ve configured and run the sample application” should be displayed.