-
Book Overview & Buying
-
Table Of Contents
Getting Started with hapi.js
By :
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 what happens under the hood when we register a plugin, and how plugins can be used to break up the functionality of your server into smaller, more manageable parts.
By the end of this chapter, you will have the tools you need to grow...
Change the font size
Change margin width
Change background colour