
Explore Hapi.js, a rich Node.js framework for building enterprise web apps, with a thriving plugin ecosystem, high-load resilience, and extensive tutorials and API documentation.
Set up a basic hapi server for a Node.js enterprise web app, creating a localhost /hello route that returns 'Hello world' and later updates to 'hello from time clock'.
Validate post payloads with Joi in a Node.js and Hapi.js app, defining required date fields, testing ISO dates, and returning clear errors via a fail action.
Learn advanced Joi validation for shift data: enforce ISO dates, ensure end is after start and not in the future, and adjust error handling beyond bail.
Focus on organizing and configuring large apps built from small plugins, using a manifest to glue components together and review the glue API.
Render a ships list later by looping a hard-coded hours array with Handlebars each helper to populate a table of who entered by and hours, showing item count updates.
Configure Handlebars templates with Hapi.js to apply a layout across views, adding branding and menus—using layout paths and manifest options.
Secure a Node.js and Hapi.js app by enforcing manager-only access and exploring Hapi authentication options, including bell for third-party login and basic plugins, note that authorization is not covered.
Update shift records in the database by posting to a new route, then refresh the manager view to show the approved or rejected status.
Hi, welcome to the course!!
Through the 11 chapters of this course, you'll learn
What Hapi.js is
How to setup a Node.js & Hapi.js server
How to validate server input & payloads, then respond with proper error messages & status codes
Server composition and configuration for additions & modifications
How to serve simple static content & complex static content over HTTP
How to simplify your server content using templates & Handlebars
How to secure your web application with Basic Authentication and 3rd party Authentication providers like Azure Active Directory (AzureAD)
How to connect to, query, insert and update records into a relational database
How to monitor your server, output logs, and ship those logs to a centralized repository like Splunk
How to easily generate Swagger API documentation
How to unit test using Lab & Code
How to unit test using Jest
How to output code coverage reports
So much more!
What version of Hapi.js is used in this course?
The latest version major version of Hapi.js - 17.x.x
Comments? Questions? Suggestions?
Leave a question in the QA section of this course!