Chapter 3. Structuring Your Codebase with Plugins

In the last two chapters, we introduced hapi, a server framework that simplifies developing servers in Node.js through a configuration-centric approach, and provides the tools needed to aid development where possible and stays out of the way when not needed.

We then looked at adding functionality to a hapi server, and looked at the tools needed to build APIs, web applications, and websites. During this, we touched on plugins, and the way in which we can use them to extend the functionality of servers.

In this chapter, we're going to look at methods and patterns for structuring an application as it grows, using plugins. This will involve taking a more in-depth look at the plugin API, so we can see ...

Get Getting Started with hapi.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.