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.


PM2 — CPU/Memory Monitoring

The previous posts within this series guided you through the topics of process management, how to display currently managed app instance processes and how to restart your applications after system reboots. With PM2, you can also monitor your app processes in respect of CPU and memory utilization. This article will …

Continue Reading

PM2 — Restart Processes After System Reboot

Previously, we published a guide on how to manage processes with PM2. The guide didn’t describe how to restart the PM2 process and managed applications after a system reboot. This is an essential feature for a process manager, because you heavily rely on system and server startup automation. You …

Continue Reading

Retrofit 2 — Simple Error Handling

Two weeks ago, you’ve seen how to log requests and responses for debugging purposes. Requests might not finish successfully and you have to take care of failure situations. Most of the time, you need to manually apply the correct action like showing an error message as user feedback. If …

Continue Reading

Retrofit 2 — Hawk Authentication on Android

Hawk authentication is sort of the underdog in the class of authentication types. It’s been officially around since November 2012 when Eran Hammer (aka hueniverse) published the first version. Since than, the HTTP authentication scheme has evolved to its current version 6.x. This tutorial guides you through the …

Continue Reading

Retrofit 2 — Log Requests and Responses

Retrofit 1 integrated a log feature for basic request and response debugging. The logging functionality was removed in Retrofit 2, since the required HTTP layer is now completely based on OkHttp. Since many developers asked for logging capabilities in Retrofit 2, the developers of OkHttp added a logging interceptor in …

Continue Reading

Retrofit 2 — How to Upload Files to Server

The previous tutorials guided you through various use cases of Retrofit and showed you opportunities to enhance the app with Retrofit’s built-in functionality. This tutorial will show you how to upload a file to a backend server using the second major release of Retrofit, namely Retrofit 2. {{outline}} {{video} …

Continue Reading

PM2 — Update the Utility

You already know how to use PM2 to start and stop processes. Honestly, installed tools, utilities and apps on your server to run your actual applications are one of the things you don’t want to touch that often and PM2 is no exception. Once everything is installed and running, …

Continue Reading

hapi — How to Use Server Labels

Server labels aren’t available in hapi v17 This tutorial is only applicable until hapi v16. Multiple connections and the server.select() method are not available in hapi v17 anymore. Using hapi as the framework of choice for building web apps or APIs brings a lot built-in functionality to leverage …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.