Posts by Andy Royle

6 posts in total

backend thumbnail image

Hapi.js and SIGTERM

When we first stood up our hapi.js APIs, we wrote init scripts to start/stop them. Stopping the server, was simply a case of sending SIGKILL (causing the app to immediately exit).

backend thumbnail image

Proxying Services With Hapi.js

I've raved in the past about how awesome hapi.js is, but I'm going to talk about just a specific case today.

backend thumbnail image

Internationalisation in a RESTful world

I18n is often a painful afterthought when serving content from a http-api. It can be taken for granted and tacked on using nasty query string values. But thankfully HTTP provides us with a solid gold opportunity. If you can look past the mire of content negotiation you can see the nuggets that lie inside.

infrastructure thumbnail image

Quick look at RethinkDB

Someone in the office mentioned RethinkDb and I was impressed by the rhetoric on the site, so I decided to spend a couple of hours spiking one of our existing nodejs apps with RethinkDb. The app currently uses MongoDb so inevitably I'm comparing the two.

engineering thumbnail image

Grunt + Vagrant = Acceptance Test Heaven

My continued love affair with Grunt reached a new high the other day, when I combined Vagrant with my Grunt deployment tasks and test runners.

engineering thumbnail image

Grunt your deployments too

We've been using Grunt as a build tool for our nodejs apps, and it's brilliant. It lints, it configures, it minifies, it tests and it packages.