Yeoman Generator for hapi services

Usage no npm install needed!

<script type="module">
  import generatorHapiService from '';


hapijs Yeoman Generator Build Status

This generator helps you quickly scaffold a production-ready hapijs service. Code generated by this project has been heavily inspired by hapi University and the hapijs style guide.

Maintained by: michaelryancaputo and thody


New Project

  • Run npm install -g generator-hapi-service.
  • From your project directory, run yo hapi-service
  • Follow the prompts

Starting your service

npm start

Testing your service

npm test


Generate a new controller (and test) called usersController.js with an example route configured: yo hapi-service:controller users

Mongoose Models

Generate a new Mongoose model called userModel.js: yo hapi-service:model user