0.0.3 • Published 4 years ago

@capsulajs/capsulahub-service-configuration v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Configuration service extension for CapsulaHub

Service that you can use for managing different configurations across your projects. Configuration service gives you possibility to easily manage your configurations.

Install

NPM

To install the package from NPM registry you should run

yarn add @capsulajs/capsulahub-service-configuration

or

npm install @capsulajs/capsulahub-service-configuration

CDN

You can get the default export from the link

https://capsulajs.s3.amazonaws.com/develop/service-configuration/index.js

API

ConfigurationService API in src of ConfigurationService

Usage

# ./config.js

module.exports = {
  name: 'my-app',
  services: [
    {
      serviceName: 'ConfigurationService',
      path: 'https://capsulajs.s3.amazonaws.com/develop/service-configuration/index.js',
      definition: {
        serviceName: 'ConfigurationService',
        methods: {
          createRepository: { asyncModel: 'requestResponse' },
          delete: { asyncModel: 'requestResponse' },
          entries: { asyncModel: 'requestResponse' },
          fetch: { asyncModel: 'requestResponse' },
          save: { asyncModel: 'requestResponse' },
        }
      },
      config: {
        provider: 'http'
      }
    },
  ],
  components: {}
};

Options

Use different configuration providers to manage your configurations over remote service, localStorage, file, etc. For RemoteProvider you should probide dispatcher as well.

Possible providers More:

  • RemoteProvider
  • LocalStorageProvider
  • FileProvider
  • HttpProvider

Default provider:

  • FileProvider

Use different transport providers to setup communication over http or web sockets.

Possible dispatchers More:

  • AxiosDispatcher
  • WebSocketDispatcher

Licence

CapsulaHub and related services are released under MIT Licence.

Back to the Main Page

0.0.2-next.35

4 years ago

0.0.2-next.34

4 years ago

0.0.3

4 years ago

0.0.2-next.32

4 years ago

0.0.2-next.14

5 years ago

0.0.2-next.11

5 years ago

0.0.2-next.9

5 years ago

0.0.2-next.7

5 years ago

0.0.2-next.6

5 years ago

0.0.2-next.2

5 years ago

0.0.2-next.1

5 years ago

0.0.2-alpha.3

5 years ago

0.0.2-alpha.2

5 years ago

0.0.2-alpha.1

5 years ago

0.0.2-alpha.0

5 years ago

0.0.1

5 years ago