Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


hapi — How to Set Response Status Code

Within previous tutorials throughout this hapi series, you’ve seen a lot functionality related to the server itself, requests and authentication. This guide is the first one geared towards responses and precisely shows you how to set the response status code that follows the RFC. Before diving into the details, …

Continue Reading

hapi — Request Payload Validation With Joi

Within last week’s tutorial you’ve learned how to access the request payload in hapi. Because you should never, ever trust provided data submitted by users, a common process is to validate the request payload against a given rule set. hapi streamlines this procedure and integrates a validation process …

Continue Reading

hapi — Multi-Segment/Wildcard Path Parameters

Last week’s tutorial on hapi walked you through optional path parameters and showed you how to specify routes leveraging optional parameters in their path. Within this week’s guide you’ll learn about route definitions using wildcard path parameters to match routes with multiple segments. Before diving into the …

Continue Reading

hapi — Optional Path Parameters

Within the tutorial on driving traffic to your website by adding routes to your hapi server, we’ve already touched the basics of path parameters. Within this guide, you’ll get additional information on path parameters, specifically optional ones. Before diving into the details, have a look at the series …

Continue Reading

hapi — How to Use Query Parameters

During the last weeks we’ve kicked off a new hapi server, extended its functionality with plugins, wrote our own custom plugin, added authentication and defined those authentication strategies to apply for your routes within a selected hapi server instance. As you’ve recognized within the title, this tutorial is …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.