Getting Started with MEAN.io Stack in less than 60 seconds

I had the pleasure to play around with the MEAN.io stack and it feels really easy to get started. I had mean.io up and running within 60 seconds, and i'm sure you can do it too. For those who have no idea what the MEAN stack is, it is akin to the LAMP stack, but MEAN is built upon:

  1. MongoDB
  2. Express.js ( a framework built on top of Node.js )
  3. Angular.js - Super heroic JavaScript Framework by Google
  4. Node.js

And guess what ? The friendly folks at mean.io have create a repository that recreates the mean.io stack

Here's how you can get started with MEAN stack in less than 60 seconds:

  1. Go to http://www.mean.io/ and click on the large green "Download" button.
  2. Unzip the folder downloaded from step 1.
  3. Change directory into the root of the folder.
  4. If you have not installed bower, you can install it using the following command:
    npm install -g bower
  5. Enter this command from your terminal:
    npm install
  6. Once everything is installed, you can start the server using:
    grunt
  7. If you noticed that the grunt command is not found, than chances are you have not installed grunt. You can install it using this command:
    npm install -g grunt
  8. Now visit: http://localhost:3000
  9. You are done!

If you happen to see that there are no CSS related stuff loaded, than chances are the /lib folder are not found in the project. If this is the case, you need to run

sudo bower install --allow-root

first. Than, you need to run

 npm install

again to make sure everything is loaded perfectly.

Now you have completed installation for mean.io.

MEAN stackEugeneComment