Search code examples
node.jsapirestrestifyhapi.js

hapi and node.js to create a REST API Server


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.


Solution

  • 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