https://www.amazon.com/Getting-Started-hapi-js-John-Brett-ebook/dp/B01BLFERY2
in this book, the author goes all plugin oriented, this is from the book: https://github.com/johnbrett/Getting-Started-with-hapi.js/blob/master/Chapter%203%20-%20Plugins/example%203%20-%20User%20Store%20Example/user-store.js
The other book I didn't buy (yet?) but it's supposedly much better, and the author is nodejs module oriented, e.g.: https://livebook.manning.com/#!/book/hapi-js-in-action/chapter-2/v-9/136
So naturally, I'm quite confused.