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.


nginx — Is Running but Not Serving Sites

We recently installed the (to this time) newest nginx version 1.17 on a new machine. The created configurations in sites-available were symlinked to sites-enabled, but nginx wasn’t serving any of the domains. The crux here, nginx used the different directory conf.d to store a catch-all default configuration. …

Continue Reading

learn hapi — What is JOSE in JWT

You may read the “JOSE” keyword when searching the Internet for details on JSON web tokens. Well, you’re likely to find “JOSE” in references to the JWT specification and not in actionable tutorials. What is JOSE in combination with JWT? That’s a good question! JWT defines the token …

Continue Reading

Ubuntu/Debian — Fix “sudo command not found”

We recently provisioned a new Debian VM and noticed that the sudo command wasn’t available. Our typical workflow includes the sudo command at the beginning of commands. The good news: you can install the sudo command on Debian and give your user the “sudo” permissions. {{outline}} Install the “sudo” …

Continue Reading

Node.js — for…of vs. for…in Loops

Node.js ships with the for…of and for…in loops. These two loops provide a convenient iteration besides the common for loop. Both loops give you a clean syntax for iterations and quick access to keys or values. This tutorial explores both loops in more detail and shows you …

Continue Reading

nginx — Remove an App/Domain from Sites-Enabled

Application hosting can become messy over time. You may shut down applications, move applications to a new domain, or you need a subdomain for a limited time. You may need to clean up your nginx configuration here and there to keep your lean setup. Nothing is worse than keeping every …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.