Over the last few years, the Node community has developed at a very fast rate. A variety of frameworks have evolved. Such frameworks are benchmarked with various aspects, such as code complexity, architecture patterns, performance, and also community usage. Some frameworks, such as Express and Koa, are known for their minimalist nature, and others, such as hapi and sails, provide configurable or structural coding techniques.
In this chapter, we are going to learn about hapi.js as it is a configuration-based framework. It uses JavaScript objects as configuration data, not always the pure JSON but the typical object notation provided as JavaScript literals. This chapter increments our learning curve toward the implementation and extensibility of JSON for creating a JavaScript server using hapi frameworks.
We are planning to study hapi with the help of...