Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thody/generator-hapi-service

Hapi API Yeoman Generator
https://github.com/thody/generator-hapi-service

Last synced: 6 days ago
JSON representation

Hapi API Yeoman Generator

Awesome Lists containing this project

README

        

Quickly scaffold a production-ready [hapi.js](http://hapijs.com) service.

Maintained by: [michaelryancaputo](http://www.github.com/michaelryancaputo) and [thody](http://www.github.com/thody)

## System Requirements

* Yeoman 1.4.5
* Npm 2.1.17

## Usage

### New Project

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

### Controllers

Generate a new controller in your current working directory called `UsersController.js` with an example route configured: `yo hapi-service:controller Users`

Generate a controller test harness in your current working directory called `UsersControllerTests.js`: `yo hapi-service:controllerTest Users`