hapi

Apr
09
Hapi: using pre-route functions for fun and profit

Hapi: using pre-route functions for fun and profit

I started to think - Express has middleware, I wonder what Hapi has? There’s bound to be something so I can ...
5 min read
Mar
16
Using templates and validation in Hapi

Using templates and validation in Hapi

In this post we’ll add template rendering (with Vision) and input validation (with Joi) into our application from the previous set of posts.
8 min read
Mar
12

Hapi - using routes from external files

[Last time we left it], the server only had a single route and was all in one file. That’s fine to start with but it’s not exactly scalable. Let’s add some routes from external files.
3 min read
Mar
11

Using Typescript with hapi

I've been using hapi lately, and decided to start using Typescript at the same time. When I looked though there didn't seem to be a lot out there on using them both together. Here's what I learned.
5 min read
Feb
23
Using Vision’s global contexts for auth data

Using Vision’s global contexts for auth data

A simple way to identify if your user is logged in.
1 min read
Feb
10

Typescript and hapi payloads

Using hapi's request.payload from Typescript without compiler errors.
1 min read