hapi and node.js to create a REST API Server [closed] - node.js

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I wish to build a web service with lots of data updates and reads and user authentication.
Which one is a better choice among hapi, restify, or express for a Rest API?
Please feel free to suggest any other framework which I haven't yet stumbled upon.
After a lot of searching, all the tutorials I could find were using the hapi framework pre v2.0. Could you please suggest me some good tutorials on using hapi and node.js to build a web API server?
I am using MongoDB for the data.

Hapi is great, one of the most famous successful implementation was the back-end system of Walmart US, and it survived the Black Friday... Search on YouTube for: "taking a REST and being HAPI"
https://github.com/geek/hapi-example
http://blog.modulus.io/nodejs-and-hapi-create-rest-api

I also found the following very helpful -
hapi hapi joi joi
HAPI API Reference

Related

Which is the best framework in node js? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Hi i am making a whatsapp like app for this which framework suitable in node.i am new in node.js.So please suggest me framework which is suitable according to my requirement.
Thanks..
If you're new to Node.js, I would suggest Express because it's easy to get started, has tons of examples, and it's quite powerful. It's used by some heavily loaded API and Web servers. This doesn't mean it's the best or anything like that. It's just suitable for beginners and can be used in production apps with no doubt.
There is no way to tell straight the best framework in nodejs (or in any other technologies). You can check out these.
Express.
Restify.
Koajs
Geddy

Node - What are the other application frameworks like Express that run on Node ? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have been looking into node and trying to understand the various components . I have tried node express . Are there other application frameworks like express ? Is there any one framework recommended ?
There are many frameworks and libraries that you could include and use. It depends on what you want to do. npm has many libraries that you can download and use with node. I would recommend at least downloading and using underscore or lodash for declarative programming. They are good to have.
There are many other cool libraries/fameworks you can try like sails.js, mean.io, and yeoman.
Express is great though. It really helps with structure and handling routes and middleware. (For example, I was able to add gzip to my respsonses with one line of middleware code). You could do it all without express, but it makes working with node.js so much easier.
If you want to use Web Sockets, use Socket.io. Web Sockets are great for real-time information. The example given is always chat, but you could use it like stack overflow when a new message, or new rep comes in. Basically something happened from another user and you want to display it without a page refresh or polling.
To handle larger volume on an "Enterprise" level, look at the Node Cluster functionality. You can create a node process per CPU processor core.
Again, it would be good for you to describe more about what you are trying to do, but you could build a web app with just node.js and express.

What are the best tools for websocket? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have node.js for notifications in my project. I use socket.io and redis pub/sub. I like socket.io because it gives me one interface for all kind of transports (websocket, long polling and etc.) and it gives me crossbrowser client library. But I have a lot of problems with debuging code on nodejs. I have problems with cpu very often and its hard to figure out reason of it. That why I want to use tool instead of node.js maybe go or erlang but I can't find tools such as socket.io on these languages
I worked on several node.js projects over a year or two several years ago and I find working with Go and debugging Go projects much easier. But that's as much personal taste as anything else.
There is a socket.io package for Go.
If you only need data from the server to the browser I'd recommend you give Server Sent Events a try; there are several nice Go packages for that, too. For example esource or eventsource.

Complete chat solution in NodeJs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I don't know if it is the right place to answer this, but is there any cometchat-like solution for Node ?
(But perhaps I should migrate the question to meta?)
Google is your friend for find excellent examples:
node.js chat socket.io example
One great chat example can be found at:
http://psitsmike.com/2011/09/node-js-and-socket-io-chat-tutorial/
Socket.io ships with a chat demo, which is essentially what the Drupal module I blogged about building is based on.
I basically took the socket.io chat demo and reworked it as a Drupal module that uses the Drupal user name as chat user name, and displays the chat interface on a page of a Drupal site.
Thanks for the link, Robert. ;)
No there doesn't seem to be a complete out of the box chat solution. There are lots of examples of building a chat service using socket.io. Socket.io is a lot of fun don't be afraid to give it a go.
Here is blog post on building a chat module:
http://willvincent.com/blog/building-custom-realtime-chat-module-drupal-7-part-1

From novice to professional: Resources for learning Node.js and Redis [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Please share your best resources for learning Node.js and Redis.
I never found these series of blog posts quoted anywhere, but it seriously helped me get started off real quick with node. http://blog.osbutler.com/categories/node-by-example/?page=3
Its a bit outdated though.
Apart from that, http://howtonode.org and the NodeJS docs.
I will continue to update this list. (But for now quickly)
http://camp.nodejs.org/videos/index.html Especially the video "Getting Started with npm: Isaac Schlueter".
http://nodetuts.com screencasts to learn node.js
I think that Redis webpage has probably the best commands documentation on the DB market (I really like especially the CLI used within examples). Also this tutorial is a must read I would say.
From the node.js point of view I would recommend Introduction to Redis by Matt Ranney and his Redis client readme and examples.
Here is a nice extensive tutorial using Node.js together with express and other frameworks: http://www.google.com/search?sitesearch=dailyjs.com&q=node+tutorial
Aaaa.... no http://dailyjs.com/ among the links is a blasphemy! hehe
list of all posts with node tag node tutorials: http://dailyjs.com/tags.html#node

Resources