1.0.1 • Published 8 years ago

subchannel-service v1.0.1

Weekly downloads
10
License
SEE LICENSE IN LI...
Repository
github
Last release
8 years ago

subchannel-service

This repository is deprecated. We’ve realized this was a bad idea and a much better idea would be to use hapi’s plugin system to compose our services.

Introduction

subchannel-service is a reusable, pre-configured hapi server. It is set up with good and good-console for logging.

Usage

Install subchannel-service using npm.

$ npm install --save subchannel-service

Then require and start your server.

const server = require('subchannel-service');

server.start(() => {
  console.log("subchannel-service is running!");
});

server will be an instance of a hapi server so you can easily add new routes, plugins and configurations.

For a slightly more complex example see the examples directory.