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.


Node.js — Filter Data in Streams

Using streams in Node.js is a powerful mechanism to process data. Especially when working with large data sets where you might want to filter chunks that don’t match a given criteria. {{outline}} Example: Loading Lines From File to Database Imagine the following example: you want to load a …

Continue Reading

learn hapi — How to Revoke a JWT

JSON web tokens (JWT) are a convenient way to authenticate users on your platform. The simplest version of handling JWT authentication looks like this: creating a token by signing it with a secret key that is only known to your application. Once created, you send off the compact form of …

Continue Reading

Node.js — Create Your Own Custom Error

Handling errors plays a major role in your application. In error situations, you want to know the details of the issue and how to solve it. When developing your app, you can create your own errors. Errors in Node.js are extensible classes. This tutorial walks you through the creation …

Continue Reading

learn hapi — Create a JWT Utility

When using JSON web tokens in your application, you’ll find JWT related implementations in different places. For example, creating a new JWT is part of a login route handler. Authenticating an incoming JWT takes place in an authentication strategy. Refreshing a JWT, JWT logout, or token blacklisting are use …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.