Ideas Into Software

Musings on writing code

All posts tagged hapi

Coding tip: Testing Hapi plugins

Hapi plugins are a great way to break your web server up into isolated pieces of logic. When you structure your app with plugins you'll get easier code reusability, more maintainability and you'll become a happier, prettier person with better posture and beautiful complexion. However, there's one thing you should not do. And I see it done disturbingly often (not

Hapi - Inject with Mocha

Hapi is a very solid framework that makes writing maintainable and testable web servers so much easier than, say, Express, that I'm seriously considering flying to Los Gatos just to buy @eranhammer a beer. There's just this one thing bothering me. If you're using Mocha, no doubt you'll very soon come across #1299 - exceptions thrown in server.inject do