Books & Videos

Table of Contents

  1. Chapter 1 Introduction to hapi

    1. History

    2. Book overview

    3. hapi-plugins.com

    4. Style

    5. Summary

  2. Chapter 2 Server

    1. Setting up a simple server

    2. Setting up the server for hapi-plugins.com

    3. Glue

    4. Rejoice

    5. Confidence

    6. Server methods

    7. Decorating the server

    8. Configuring for caching

    9. Request lifecycle

    10. Extension points

    11. Summary

  3. Chapter 3 Routes

    1. Path processing

    2. Parts of the route

    3. Server router config options

    4. Summary

  4. Chapter 4 The handler

    1. The request

    2. The reply

    3. Organizing handlers

    4. Built-in handlers

    5. Adding common methods to the handler

    6. Tails

    7. Defining the handler using server.handler

    8. Liking a plugin example

    9. Uploading files

    10. Summary

  5. Chapter 5 Validation

    1. Types of validations

    2. Joi validation

    3. Generic data validation with joi

    4. Using a validation function

    5. Summary

  6. Chapter 6 Plugins

    1. Creating your own plugin

    2. When to use a plugin

    3. The hapi plugin ecosystem: some common plugins

    4. Summary

  7. Chapter 7 Authentication

    1. Chapter Overview

    2. Scheme vs strategy

    3. hapi-auth-basic

    4. hapi-auth-cookie

    5. bell

    6. Summary

  8. Chapter 8 Models

    1. Using HTTP

    2. Using a database

    3. Summary

  9. Chapter 9 Templating

    1. Configuration

    2. View Loading

    3. Layouts

    4. Partials

    5. Helpers

    6. Summary

  10. Chapter 10 Testing

    1. Chapter Overview

    2. History of lab

    3. Installing lab

    4. Writing a simple test

    5. Principles of lab

    6. Writing a hapi test

    7. Code coverage

    8. Reporters

    9. Linting

    10. Plugin Testing

    11. Summary

  11. Chapter 11 Debugging

    1. Chapter Overview

    2. console.log

    3. debug mode

    4. TV

    5. Good

    6. REPL

    7. Heap Snapshots

    8. Core Files

    9. Summary

  12. Chapter 12 Security

    1. Best practices

    2. Summary

    3. Review

  13. Chapter 13 Appendix

    1. Models

    2. Schemas

    3. Templating Engines