hapi is an enterprise-ready web application framework built on Node. This course introduces you to hapi and walks you through developing a complete web application. Complex routing and server-side templating are covered. hapi's plugin architecture is given an overview with demonstrations of joi (object validation), boom (HTTP-friendly error objects), and good (process monitor and logger). Advanced topics also include authentication, file uploads, and sending emails.
Routing Hello, and welcome back to Building Web Applications with Hapi. My name is Ryan Lewis, and in this module, we're going to dive headfirst into routing with hapi. We'll take a quick look at the requirements for the web application we will be building to demonstrate hapi's features. Then I'll give you an overview of the server object. We saw that in the last module when we created our Hello World application. Our goal in this module is to understand and get experience with setting up routes in hapi, so we'll learn about the request object and the reply interface. Finally, we'll start putting these concepts to use as we start building out routes for our demo application.
Templating & Plugins Hi! My name is Ryan Lewis, and welcome back to Building Web Applications with Hapi. This module is focused on templating and plugins. We'll start by plugging in our view rendering engine into hapi. Then we'll start templatizing many of the HTML files we used in the last module. Next, we'll install Joi and perform some validation on our post requests. Another plugin we'll install is Boom, which we'll use to set up error handling in our application. And, finally, we'll install Good, which will configure logging throughout our application. There's a lot to cover in this module, so let's get started.
Advanced Topics Hello! My name is Ryan Lewis, and welcome back to Building Web Applications with Hapi. In this module, we'll be covering several advanced topics that will close out our demo application development and round out your knowledge of hapi. By the end of this module, you should feel ready to take on your own hapi project with confidence. To understand what we'll be learning in this module, let's take a look at our demo application requirements again. We've completed the first two requirements in the previous two modules. In this module, we'll complete the last three requirements--uploading images, emailing cards, and authentication. We'll start the module by looking at a better structure for our application. Our server. js file is getting a little large, so we'll find a better way to store all this code. Then we'll set up authentication in our application so users can see only their own cards. Once the user accounts are complete, we'll implement file uploads into our project so users can send their own images in the cards. Finally, we'll integrate with Mandrill so that users can send Hapi Greetings emails to all their friends.