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.


TypeScript — How to Export Transpiled Code From package.json

TypeScript is gaining popularity in the JavaScript ecosystem. Package authors may choose TypeScript over JavaScript to automatically create type definitions. These type definitions will then be exported with the package and be available when importing the package in another project. This tutorial shows you how to export the transpiled TypeScript …

Continue Reading

Retrieve a Request’s IP Address in Node.js

Web frameworks in Node.js provide a request object containing information from the requesting instance. The request object typically includes the IP address of the requesting client. If you want to geo-locate the requesting user, the IP address is helpful. This tutorial shows you how to retrieve the client IP …

Continue Reading

hapi — How to Fix “Unsupported Media Type”

The “unsupported media type“ error occurred while uploading a file to a hapi server. The file is an Excel sheet and at first, it seemed like the content type was the issue. But the problem was the multipart upload which comes with a straightforward fix! {{outline}} Fixing “Unsupported Media Type” …

Continue Reading

git — 'flow' Is Not a git Command

Using git as your version control system comes with different ways to structure your repository. A popular approach using git successfully in your project is the git flow branching model from Vincent Driessen. When running into the error git: 'flow' is not a git command., you don’t have git …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.