Part 1. First steps


This first part of hapi.js in Action is all about laying the foundations for the rest of the book and introducing many of the core concepts in hapi.

Chapter 1 introduces hapi and explains what it is and what it can do for you. You’ll also see—at a very high level—how apps can be put together.

In chapter 2, you’ll jump right in and build a JSON API using hapi. You’ll discover how to translate business requirements into working code and you’ll touch upon many key concepts including routing, handlers, authentication, and working with a database.

Chapter 3 focuses on the front end, building a simple website for the API you built in chapter 2. You’ll also learn all about static file serving and how to organize your markup into layouts, partials, and views using templating languages.