webconsole-console
v0.0.0
Published
Navigation and other common services
Downloads
6
Readme
webconsole-conolse
hapi plugin that exposes web console navigation resources through GraphQL.
Table of Contents
Install
npm install webconsole-console
Options
authStrategy
: name of the hapi auth strategy to use for/graphql
routebaseUrl
: required base URL of the datacenter where the current console is runningconsul
: object with configuration details for connecting to the local consul agenthost
: agent host address, defaults to '127.0.0.1'port
: agent port, defaults to '8500'secure
: enable HTTPS, disabled by defaultca
: string array of trusted certificates in PEM format
Usage
const server = new Hapi.Server();
await server.register({ plugin: WebConsole, options: { authStrategy, baseUrl: 'https://us-west.site.com' } });
Local development
npm run dev
npm run faker