Reputation: 1964
Okay I have been working on getting a mean stack started on cloud 9 but have run into many issues.
Do I use Mean.io/ Meanjs.org/ or do I personally install the mongo/express/angular/nodejs myself.
What are the differences +'s and -'s to each. I am trying to make a Portfolio page for myself so I will try to use everything the stack has to offer.
I have seen installs tutorials for ubuntu but I can't find any new tutorials. Everything seems to be 2014 or early 2015. Many of the steps in tutorials no longer work the same as they did in the tutorials.
I am brand new to mean but have used and know all of the stack pieces except express. I am used to Meteor which is essentially the same but need to learn Mean for a job. I prefer meteor for its simplicity but I believe Mean is more important since you have more control.
I ended up getting a job with MEAN stack and currently work with it daily. I like the generators but I think starting with generators is great but making it from scratch really get's me learning. I hope to make my own generator.
Upvotes: 0
Views: 285
Reputation: 4671
I also create MEAN
stack with the yoeman like this:
For Example, for phones project(client): c:\mean\phones\client
c:\mean\phones\npm install -g yo
c:\mean\phones\client\npm install -g gulp generator-gulp-angular
// angular with gulp generator c:\mean\phones\client\yo gulp-angular
//it starts the install wizard Restangular
to communicate between client and server like so:bower install --save restangular
c:\mean\phones\client\gulp serve
it starts an http server to show the angular pageServer side: c:\mean\phones\server
c:\mean\phones\server\ npm install --save express
install express c:\mean\phones\server\ npm install --save mongoose
install mongoose c:\mean\phones\server\ npm install --save node-restful
c:\mean\phones\server\ npm install --save method-override
c:\mean\phones\server\ npm install --save body-parser
Create automatically a node express project like so: c:\mean\phones\server\express my-project
nodemon
, so that on your every change it will restart
Last but not least you have to be careful how the restangular
communicates with the node server in order to fetch/delete/update etc data, into your index.config.js
:
function config($logProvider, toastrConfig, RestangularProvider) {
//set the base url of the rest api server
RestangularProvider.setBaseUrl('http://localhost:3000');
// Enable log
$logProvider.debugEnabled(true);
}
})();
Upvotes: 0
Reputation: 703
The difference between Mean.io and Mean.org is provided here :-
It would be better if you will install MongoDB/Express/Angular/Nodejs that way you will get the flow and the architecture of Mean stack. This link will help you in setting up step by step MongoDB, Express,Angular and node JS :- http://meanjs.org/docs/0.3.x/
An amazing TO-DO'S application that is also build using MEANJS
Best of luck for your application!!
Upvotes: 2
Reputation: 297
If you are new with the MEAN stack I recommend you to use: https://github.com/angular-fullstack/generator-angular-fullstack
It's an MEAN generator for yeoman: http://yeoman.io/
The scaffolding and everything is explained there.
Upvotes: 1