Marcus Pöhls

Marcus is an enthusiastic web developer and creates web applications with hapi and RethinkDB. He’s also a typography and coffee geek :)

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

The previous tutorial on how to correctly stop your hapi server already teasered another tutorial on the same topic with more focus on your production environment. We at Future Studio are huge fans of hapi, which you can see at all the tutorials. Also, we love the awesome Node.js …

Continue Reading

Hapi — Log to Console With Good

Logging is an essential component in your application that provides transparency to the behavior of a running system. You’ve various use cases to put your logs to work. By default, hapi doesn’t have a logging mechanism integrated. There are plugins that add the desired functionality and help you …

Continue Reading
Page 1 of 21

Explore the Library

Find interesting tutorials and solutions for your problems.