O'Reilly logo

Developing a hapi Edge: A Rich Node.js Framework for Apps and Services by Foreword by Eran Hammer, Lloyd Benson, Daniel Bretoi, Van Nguyen, Wyatt Preul

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Server

Hapi is a framework used for building applications and services. Behind every service, there is a server; something that serves what the client needs. Hapi is at its core a superset of an HTTP server. Everything around hapi is tied in to this fact, so we kick off this book talking about the main functionality. It’s from this that everything else is configured and makes a difference. We’re going to be talking about a lot of concepts that are related to the server, plugins, handlers, testing, and more.

In this chapter we look at how to set up a server and how we’ve set up the server for our hapi-plugins.com example. We’re going to teach you the ins and outs of the server in the hapi framework. You’ll learn the different ways ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required