Skip to content

xogroup/toki-hapi-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toki-Hapi-Bridge

Allow the Toki project to be hosted on the hapiJS stack

This is a bridge designed to facilitate using parts of the Toki project on a hapi based server.

Lead Maintainer: Derrick Hinkle

npm version Build Status Known Vulnerabilities NSP Status

Example

const bridge = require('toki-hapi-bridge');
server = new Hapi.Server();

server.connection({
    host: 'localhost',
    port: 5000
});

return server.register(bridge);

More examples can be found in the examples document and the full api in the API documentation.