Hapi.js server core Glue composition.
The easiest way is to keep hephaistos-core
as a dependency in your package.json
.
{
"dependencies": {
"hephaistos-core": "1.0.0"
}
}
You can simple do it by:
npm install hephaistos-core --save
var hephaistosCore = require('hephaistos-core');
var options = {
relativeTo: '../my/source/dir'
}
var pathOfManifest = 'path/to/config.json';
module.exports = (function(){
hephaistosCore(pathOfManifest, options).start();
})();
hephaistos-core
is a function that takes the following arguments:
- pathOfManifest - (required) the of Hapi.js manifest file.
- options - (required) an object that contain options for Hapi.js Glue.
(Nothing yet)
Licensed under the MIT license.