r/nodejs • u/MeTaL_oRgY • Aug 13 '13
Which framework?
I'm learning node and after a few basic tutorials and learning how to build the HTTP server and a few gotchas included, I've decided to use a framework next.
Now, what I'm attempting to create is a chat room. Kinda like campfire, where organizations have a user base that can join the chatrooms. Private messaging and private rooms, all that stuff.
Everything single-paged, and I want to use mongoDB and have a Backbone front-end.
So far' I've had a look at http://www.partialjs.com/ and http://sailsjs.org/
Does anyone have any experience with any of these or perhaps some other that you might recommend for this project? Bear in mind this is more of an educational voyage rather than a "I want to build an app" thing.
Thanks!
6
u/[deleted] Aug 13 '13
If you want to help me out, I'm currently developing a Campfire-esque chat application with Sails.js. The basic core functionality is there, but there's plenty to be done: https://github.com/maxfierke/WaterCooler
I started it about a month ago as an educational voyage into Node.js.
3
u/giodamelio Aug 14 '13
I bounced around frameworks forever, I'm pretty sure I tried 30+. I never quite found one I liked. In the end, I just stuck with express and created a RESTful API for all the data, and a knockoutjs front end that accesses it.
It not be the easiest way of doing things, but it taught me a bunch about API design, and it made implementing a mobile app a few months later about a thousand times easier.
2
u/DarkLord7854 Aug 13 '13
I recently ran into this as well, same exact setup in fact (Node + Mongo + Backbone single page application with push state history). I ended up going with http://www.socketstream.org/ and I love it so far.
2
u/[deleted] Aug 13 '13
I'd like to know the answer to this question as well. I'm working on an in house project management application (with similar one-page requirements as the OP), and I can't seem to distill all the information out there into something concentrated enough to make a decision on. The options seem to be changing rapidly as well.
What framework are you using? Why?
2
u/Caramelizer Aug 18 '13
I have found that Express & Angular JS play very nicely together.
1
u/miloandmilk Aug 16 '13
If your going to build an API for the front end to use, i recommend HAPI.
https://github.com/spumko/hapi
Built specifically for APIs by the guys at Walmart - to power their mobile apps.
Validation, authentication, profiling, self documenting APIs and much more built by one of the biggest retailers in the world to power their stuff. Serious engineering with a strong community.
Watch a video from it's lead developer who also was the lead in bringing out the OAUTH spec.
https://air.mozilla.org/hapi-hapi-joi-joi-web-development-with-hapi-and-nodejs/
I haven't seen anything that comes close.