Blog

Read my latest Articles

Docker Volumes

150 150 Frank

Hey everyone, Today I want to explain you a bit about Docker Volumes, when/where to use them and their benefits. Remember that in the Docker Introduction I said a Docker container is stateless? For the contained data that is mostly true. There are two differences: Docker Volumes External Connections A completely stateless container would of…

read more

What´s a Dockerfile?

150 150 Frank

Hey everyone, after the introduction of Docker I thought I show you the recipe to create such a container. The recipe is like a recipe for your favorite lasagne and is called Dockerfile. It looks similar to this: FROM node:8.15.0-alpine # Add application folder RUN mkdir /app WORKDIR /app # Add package.json and install deps…

read more

What is Docker? Or: Why choose Docker?

150 150 Frank

Hey everyone, today it´s about one of the virtualisation solutions out there: Docker. I want to help you understand quickly how it works. What is Docker? As mentioned Docker is a software virtualisation solution. There are others out there which are different. The important point is that it uses container virtualisation. That means with Docker…

read more

Script in Node.js to iterate a directory and extract information from it´s files

150 150 Frank

Hi everyone, after we did the template last time, I want to show you how to put the single pieces together. Based on a task at hand I choose the example of iterating and working with files in a directory. The exact task was: – Iterate a directory – find all JSON files in it…

read more

Commandline tools with Nodejs

150 150 admin

Hi everyone, sometimes you need a small tool like but you might be working for an extended period of time in Node.js so that you don´t want to switch languages and loose time and momentum on it. You want to do it quickly, but correctly to be able to reuse it in one way or…

read more

Auto Remove RabbitMQ Orphan Queues from Loopback MQ Connector

150 150 Frank

Hi everyone, who doesn’t know this: You’re working on multiple projects, some container still run on docker, others are already terminated. But your rabbitmq gets slower and slower. You check the Queue overview and you see numerous queues with names like 1234568.node /app/server/server.js.54.response.queue. These are queues that are left over, sometimes from crashed containers, sometimes…

read more

How to promisify with bluebird

150 150 Frank

Hey @everyone, this will be a quick tip / reference. Sometimes I get asked about the syntax to promisify only one function with the bluebird Promise Library. I will show you an example to promisify the readdir method of the fs package: 'use strict' const fs = require('fs') const Promise = require('bluebird') const readdirAsync =…

read more

Angular Tips I: Fix Can’t bind to ‘routerLink’ since it isn’t a known property of ‘a’.

150 150 Frank

Hi everyone, this will be a quicky. I guess everyone has had this error and was so used to it working that you forgot how to solve it. Because I just had that experience I write this post. What you tried to achieve Add a routerLink entry to an a html element in the Angular…

read more

Docker Stack for Apache, PHP FPM & MySQL

150 150 Frank

Hey everyone, it has been quite some time since my last post, I know. Today I came across a new problem and wanted to share my Solution (that is based on some giants shoulders) with you. I have a development environment for Apache & PHP on my MacBook, but with all the different ways, changes…

read more

SSL Termination Stack Setup: Let´s encrypt, HAProxy, Your Stack

150 150 admin

Hi everyone, for a setup at work I needed an quick and easy way to terminate an SSL Connection without hassle. After a short research I found it feasible to use Let´s encrypt for free SSL Certificates.But it looked like a lot of work to create the certificate so I searched for an quicker and…

read more

Node.js Tooling I – Processmanager PM2

150 150 Frank

The purpose of this post is to help you get started with tools for Node.js in general and Loopback specifically to ease you life as Developer and Operator. Prerequisite You need a Node.js based API (to follow through this article. PM2 supports other languages too). PM2 Processmanager The PM2 Processmanager is a mighty one with…

read more

MLAND Series – Tips III – Loopback RabbitMQ Usage

150 150 Frank

The purpose of this post is to help you get up and running with RabbitMQ integrated into your Loopback API. Prerequisite You have a working Loopback API Project. RabbitMQ Install the Loopback component Inside your Loopback project folder run: npm install loopback-component-mq --save This will install the component and all it´s dependencies as you are…

read more

MLAND Series – Part I Simple Todo List App Api

150 150 Frank

MLAND Series – Part I Simple Todo List App Api The purpose of this post is to familiarize you with the Loopback framework and Angular 4. You will create a very basic todo list app with a backend api and a frontend ui. Familiarizing with Loopback Install Loopback I expect you have installed Strongloop Loopback on…

read more

MLAND Series – Tips II – Loopback AthenaPDF

150 150 Frank

Purpose When developing an Infrastructure for a Client Project I faced the situation that I needed to support 50 concurrent request to generate a PDF. The purpose of this post is to show you how I did this using AthenaPDF and RabbitMQ. Setup The Setup used for this Tip is a machine on Digital Ocean*, created…

read more

MLAND Series – Tips I – Loopback RabbitMQ Mistakes

150 150 Frank

Purpose The purpose of this post is to highlight the most common mistakes I experienced with Loopback and RabbitMQ myself. Mistakes I made and might have done too Receiving [rabbit.unhandled] MessageForgotten to load mixing in model-config.json Message keep getting redelivered Getting undefined from payload Fix Receiving [rabbit.unhandled] This error can result from 4 different mistakes:…

read more