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 — Restrict User Access With Scopes

Building an application that allows users to sign up for your platform always involves authentication and some kind of authorization. You may have dedicated administration areas where „normal“ users shouldn’t have access to. With hapi you can build on a great feature: scopes. Scopes are part of the authentication …

Continue Reading

hapi — Disable Plugins for a Selected Route

The powerful plugin system is one of hapi’s most undervalued features! It’s a great component, well implemented and allows you to develop your features isolated from one another to separate concerns. Imagine this example: you’ve enabled CSRF protection using hapi’s crumb plugin and also want to …

Continue Reading

hapi — How to Upload Files

Web application development with hapi allows you to build with rapid speed. Many boilerplates exist and provide the fundamental structure with functionality for user handling, view template management and more. That means you can jumpstart right into the nitty gritty development of your application. And of course in these social …

Continue Reading

hapi — Log to File With Good

Assumingly, you agree that application monitoring and logging is an essential part of your application. Within previous tutorials, you’ve already learned about the fundamentals of logging in hapi and how to log to console in your hapi app. This tutorial shows you how to pass and store your log …

Continue Reading

hapi — Zero-Downtime Deployments Using PM2

This isn’t available for hapi v17, yet. The used plugin hapi-graceful-pm2 isn’t compatible with hapi v17. I’ll update this tutorial as soon as there’s a way to work with hapi v17. Promise! The previous tutorial on how to correctly stop your hapi server already teasered another …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.