Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sean-hill/hapi-boilerplate

Simple hapi boilerplate that is functional, testable, and awesome.
https://github.com/sean-hill/hapi-boilerplate

hapi hapi-boilerplate

Last synced: 3 days ago
JSON representation

Simple hapi boilerplate that is functional, testable, and awesome.

Awesome Lists containing this project

README

        

# Hapi Boilerplate

## Setup

$ npm install
$ npm start

## Tests

$ npm test

## API Docs

Navigate to `/documentation` for full blown swagger docs of the API.

## File Structure

Routes / handlers / and business logic are contained within the `/components` directory. Each route is provided a `handler` function which is wrapped around a `service` function. These `service` functions allow each component's business logic to be tested independently from the API.