8 ms·
Mean Stack
- outside1234 13y agoLove it - except for the Angular part - can we get a MEEN stack with Ember.js?
- chadhietala 13y agoWas going to say the same thing.
- batgaijin 13y agoWhat don't you like about Angular? The template engine makes the insanity of explicit updates go away...
- ricardobeat 13y agoSome would say data-binding and logic in HTML attributes is insanity.
- sanderjd 13y agoOh no! They're pronounced the same! No end of confusion...
- amoshaviv 13y agowe deeply encourage any kind of forking of this project. have fun break rebuild!
- arunoda 13y agoHow about providing a npm module(binary) as well. So we can use it like this. `mean create myapp`
- nonchalance 13y agoA good example is phonegap: http://npm.im/cordova http://npm.im/cordova
- amoshaviv 13y agoactually this is the next step for us, we just started to work on it.
- arunoda 13y agoawesome.
- wasd 13y agoWhat's the deal with MongoDB and the node.js community? I don't find non relational databases that enticing and there are javascript drivers for postgres [1]. [1] https://github.com/creationix/postgres-js https://github.com/creationix/postgres-js
- cuttooth 13y agoJavaScript "developers" feel the need to not use any other language than JavaScript, so they decided to shove it into as many unnecessary places as possible, even if their code more frequently ends up being an unmaintainable mess with no noticeable performance gains.
- landongn 13y agois the "developers" dig really necessary? MongoDB is fine-- at least until you start seeing significant scale, and even then, it's going to run into the same issues as everything else would if you hit it too hard, too often. Just because the query language is JSON-esq and has a javascript shell, it's therefore "Javascript" and a target of derision and scorn?
- jaredsohn 13y agoI don't feel like you addressed the parent post. It was asking why people use mongodb instead of JavaScript bindings for PostgreSQL.
- muriithi 13y agoI have used both. I find it easier to iterate using mongodb because you do not even need a schema to begin with. If I want to move forward I can switch to mongoose or move over to postgres and node-pg.
- cnlwsu 13y agoI think very few javascript developers only know javascript. This some kind of late 90s C++ elitism or sarcasm?
- kaeruct 13y agothe background image makes it unreadable on small windows... i suppose it's the same on mobile devices
- begriffs 13y agoThis would be even smoother as a Yeoman generator. http://yeoman.io/generators.html http://yeoman.io/generators.html
- alanh 13y agoI’m not a NoSQL expert, but everyone I know who is considers Mongo a joke in production. And I would never use Angular in production apps (“painfully slow” is reason enough but I have ideological differences as well). That makes saying “no” to this stack easy.
- wasd 13y agoI haven't seen any benchmarks that make it seem like Angular is "painfully slow." AFAIK, its on par or faster than ember.js and knockout.js. What would you use instead for MV* in the browser?
- alexfringes 13y agoI haven't actually seen any decent benchmarks between those systems as a whole. Most comparisons seem to shy away from that (between some candidates it probably doesn't make sense to benchmark anyways). But if you've seen anything interesting on that front, I'd be thankful if you could post it. And, you're right, so far Angular hasn't let me down regarding speed.
- alanh 13y agoOur relatively simple Angular app was regularly consuming 100% CPU for literal minutes and ate up 600MB of RAM until we dramatically reduced not-actually-that-crazy number of API calls we made on load (from less than 100, mostly prefetching data – to less than 15, pr-fetching sacrificed). It is mostly related to Angular’s “dirty checking” and ajax management. I have met others with the same problem. (Their solution? Use Backbone!)
- wasd 13y agoI think its a lot to ask but would you consider making a sample application that replicates this same behaviour?
- wnevets 13y agoquick someone tell doubleclick that angularjs is painfully slow
- dmak 13y agoIt's pretty sweet, I cloned this project to get started and it was much harder to learn at first since there wasn't an example of the basic CRUDs; They added examples now, so the learn curve is less steep.
- d0m 13y agoSo much hate on HN these days. Thanks for sharing, that's definitely a very useful and productive stack that I keep going back to again and again for every projects. Will give it a try next time.
- ErikAugust 13y agoI spoke of the "MEAN" stack today - cool to see others using to a tee - with Mongoose and Passport. Two other nice packages: Nodemailer - for emailing - npm install nodemailer Moment.js - for time/date formatting, and a ton more (manipulation, etc) - npm install moment
- MrBlue 13y agoLooks a lot like this node+express+mongo boilerplate: https://github.com/madhums/node-express-mongoose-demo https://github.com/madhums/node-express-mongoose-demo
- bemurphy 13y agoThanks for sharing this. I've been getting into express lately and this boilerplate is a little leaner for the reading. It also just informed me of the app.param api in express. I had no idea.
- olegp 13y agoWe've been using almost the same stack at StartHQ (https://starthq.com https://starthq.com) with great success. Mongo and Angular make it easy for us to iterate quickly. Performance hasn't been an issue with up to 300 concurrent visitors on site running on a AWS micro instance. The one thing we do differently is that we're using fibers and Common Node (https://github.com/olegp/common-node https://github.com/olegp/common-node), as well as Stick (https://github.com/olegp/stick https://github.com/olegp/stick) instead of Express. This lets us write complex business logic with less code and without having to worry about explicitly handling errors, since we get to use exceptions.
- amoshaviv 13y agoGuys as the author of this project one of the guidelines i had was to create it as modular and familiar as i can, so whenever I could I tried using a popular module(mongoose, passport etc.) I deeply encourage anyone who wants to break, replace, remove, add any part of this project to go ahead and do so! Like any recipe this is just our serving suggestion. I'd love to see an ember fork!
- digitalzombie 13y agoI had worked with several people that chose Mongodb. Their reasons were the database is easy and it "scale". The real reason why they chose it because they think SQL is too hard. Really, they were self taught programmers that couldn't bother to learn SQL and jump straight to NoSQL hype and the fact it was "easy".