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.


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

PM2 — List Processes and Show Process Details

The last two blog posts on PM2 covered the utility overview and guided you through the process management including start, restart, stop and delete processes of various types (Node.js, Ruby, Python, PHP, etc). Once you have processes started with PM2, you want to get a comprehensive overview of currently …

Continue Reading

hapi — Views in hapi 9 (and above)

With the release of hapi 9, the developers stripped down hapi’s internal dependencies and removed the previously integrated vision plugin. This plugin was responsible to decorate hapi’s server object with the views method. Removing the plugin from the framework’s core resulted in losing the server.views method. …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.