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 — 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

Node.js — How to Reset and Empty an Array

When emptying an array in JavaScript/Node.js you’ll surely think of reassigning your array’s value to a new array. There’s another way to reset an array: set the length to zero. Let’s have a look at both ways. {{outline}} Assign an Empty Array A common …

Continue Reading

Node.js — How to Create an Empty File

You may know the touch command from your command line which creates an empty file if it doesn’t exist. This tutorial shows you how to implement touch in Node.js. You’ll implement a function that creates an empty file using Node.js. You’ll walk through an asynchronous …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.