Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sean-hill/hapi-boilerplate
- Owner: sean-hill
- Created: 2017-06-20T20:40:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T20:07:35.000Z (over 7 years ago)
- Last Synced: 2024-11-08T08:46:09.231Z (about 2 months ago)
- Topics: hapi, hapi-boilerplate
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.