concept Node.js in category hapi

appears as: Node.js
hapi.js in Action

This is an excerpt from Manning's book hapi.js in Action.

There are many frameworks for building web applications with Node.js. The more minimal ones like Express.js offer relatively little out of the box, with the aim of flexibility, and still require you to make a lot of decisions about infrastructure. Other, more focused API-only frameworks like Restify are limited in their scope of applications.

Figure 5.1. The HTTP request is parsed first by Node.js and then later by hapi into the request object that we know in our hapi applications.

History aside, what is Node.js? Simply put, Node.js lets you run programs written in JavaScript outside of the traditional environment of JavaScript—browsers. What kind of environments are we talking about? Well, any really, but mainly as web developers, if we’re not building programs for browsers, we’re building them for servers. Node lets us write our server-side programs in JavaScript, rather than, say, PHP, Java, Ruby, or any of the other common server-side web programming languages.