Environment Registry service extension
This service allows to register and load different versions of a project/service environment.
This is the bootstrapped service ready to use for CapsulaHub.
More detailed info are available here.
Install
NPM
To install the package from NPM registry you should run
yarn add @capsulajs/capsulahub-service-environment-registry
or
npm install @capsulajs/capsulahub-service-environment-registry
CDN
You can get the default export from the link
https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-environment-registry/index.js
WorkspaceConfiguration example
{
"services": [
{
"serviceName": "EnvironmentRegistryService",
"path": "https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-environment-registry/index.js",
"definition": {
"serviceName": "EnvironmentRegistryService",
"methods": {
"register": { "asyncModel": "requestResponse" },
"environments$": { "asyncModel": "requestStream" }
}
},
"config": {
"serviceName": "EnvironmentRegistryService",
"token": "someToken"
}
}
]
}
Exports
Default
Bootstrap function of the extension.
Named (API)
The public API of the extension.
Usage
See here
API
CDN
The documentation about public API.
Local
Run
yarn doc
And open doc/index.html in browser.
Tests
Run
yarn test
yarn test:debug
Licence
CapsulaHub and related services are released under MIT Licence.