Articles tagged in: hapi



hapi — How to Reply a JSON Response

Within last week’s tutorial, you’ve learned how to reply rendered HTML for a given request. Obviously, there are situations where replying HTML won’t fit your needs and you want to send JSON data as a response. This guide will show you how to reply JSON for a …

Continue Reading

hapi — How to Render and Reply Views

Within the previous tutorial, you’ve seen how to serve static files using hapi. HTML files also apply to the static file concept and you could use hapi to reply requests with rendered HTML content. Nonetheless, if you’re on the search for a more dynamic approach related to views, …

Continue Reading

hapi — Create Your Own Custom Plugin

This guide continues on extending your server’s functionality with the help of plugins. Within the previous tutorial, you’ve learned how to register a plugin to your hapi server instance and with that increase the servers feature set. Also, we’ve described hapi’s efficient plugin system and the …

Continue Reading

hapi — Get Your Server Up and Running

This post kicks off a new series on hapi, a Node.js web services framework. Hapi provides a solid foundation that lets you fully focus on building your application by shipping with built-in support for plugins, authentication, caching, input validation, and many more essential features! Update — hapi 17 ready The …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.