Recently I’ve been working on integrating with a subscription/payment gateway. (It hasn’t been straightforward, but that’s a whole other post…) I wanted to be able to test my web-hook code without repeatedly triggering events from the gateway. I stored the incoming events in JSON format, which
I started to think - Express has middleware, I wonder what Hapi has? There’s bound to be something so I can ...
In this post we’ll add template rendering (with Vision) and input validation (with Joi) into our application from the previous set of posts.
A simple way to identify if your user is logged in.
Handling optional variables in an EJS template.
Also known as "things I've learned today"... I've been using Insomnia the last couple of days to test a web API. Insomnia's a great client - it's got lots of features to make life easier. You can set arbitrary headers to whatever value you want, you can import cURL commands,
I just had to take a minute to say - Vue’s automatic PWA support is amazing. Enable it with the Vue CLI and it Just Works. Okay, you have to supply your own icons and stuff, but that's pretty reasonable I think. ;-)
I was following Flavio Copes' tutorial on creating a basic GraphQL server in Express the other day. The tutorial was good, but I realised at the end that it didn't give you an example of a query to actually see the resolvers in action. Luckily I've picked up enough GraphQL
Making Winston log statements act like console.log()
There are a few guides to doing this out there - however, I found that none of them really worked for me for one reason or another. So I thought I’d document what worked for me. If nothing else it’s an alternate path to the one many blog