Getting Started with MEAN.js
Recently am into Javscript development like node, angular etc. And i came across this awsome stack just like WAMP . It's called MEAN and am so much excited about this stack. MEAN stands for
- Mongodb]- The Database
- Express - The serverside framework
- Angular - The Client side MVC framework
- Node.js - the server or the server side runtime
There are two major MEAN generators availbale , MEAN.js and MEAN.io . Both gives a kickstart in MEAN development. But note than MEAN stack development is possible without these.
Both are theoratically same and uses same technologies and also developed by same guy, Amos Haviv. Am write down my "Getting started" experience with MEAN.js.
For MEAN.js you need these technologies installed.
After installing these , open a terminal and type:
npm install -g grunt-cli
Next Install bower
npm install -g bower
Next install yeomen generator
npm install -g generator-meanjs
So the Installation all over. Make sure mongod service running and don't forget to add the mongo bin folder to path. Please note that am using windows .
Okay so we have setup our development environment now switch to development.
First you need to create a project folder and create the app
mkdir TestApp && cd TestApp
Now you are inside the app folder create the app, it will automatically install necessory packages and will setup the development environment.
Here a couple of question will be asked like name ,description etc. You need to select which of the Angular js modules also.
After setup start the server
Check the app in browser http://localhost:3000/
You will see the app like this :
Continue with next part.