Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toymachiner62/generator-hapijs
A Yeoman generator for hapijs
https://github.com/toymachiner62/generator-hapijs
Last synced: 30 days ago
JSON representation
A Yeoman generator for hapijs
- Host: GitHub
- URL: https://github.com/toymachiner62/generator-hapijs
- Owner: toymachiner62
- Created: 2014-08-04T04:02:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-11T18:22:54.000Z (over 9 years ago)
- Last Synced: 2024-10-07T01:34:55.579Z (about 1 month ago)
- Language: HTML
- Size: 529 KB
- Stars: 8
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# generator-hapi [![Build Status](https://secure.travis-ci.org/toymachiner62/generator-hapijs.png?branch=master)](https://travis-ci.org/toymachiner62/generator-hapijs) [![Code Climate](https://codeclimate.com/github/toymachiner62/generator-hapijs/badges/gpa.svg)](https://codeclimate.com/github/toymachiner62/generator-hapijs)
> [Yeoman](http://yeoman.io) generator for scaffolding [Hapijs](http://hapijs.com) modules
## Getting Started
### Installation
To install generator-hapi from npm, run:
```bash
$ npm install -g generator-hapijs
```### Generated Directory Structure
This hapijs generator assumes that you want your project structure to look like this:
```bash
-project
--module
---module-ctrl.js
---module-dao.js
---module-routes.js
---module-test.js
```### Usage
#### Main
Scaffolds out a hapijs project.```bash
$ yo hapijs
```#### Module
Scaffolds out a module to an existing hapijs project```bash
$ yo hapijs:module foo
```#### Endpoint
Scaffolds out a new endpoint for an existing module```bash
$ yo hapijs:endpoint
```## Contributing
To run tests:
```js
npm test
```To install your local version of this package rather than the NPM published version:
```js
npm link
```