nsftx / chameleon-sdk

Chameleon Software Development Kit
MIT License
12 stars 2 forks source link
bundle chameleon chameleon-builder chameleon-bundle chameleon-sdk connector javascript mixins sdk

CircleCI Build Status codebeat badge codecov npm Greenkeeper badge

chameleon-sdk

Chameleon Software Development Kit is a package for rapid development of Chameleon bundles. It also serves as an integral part of Chameleon Builder. This package is already used if you use chameleon-bundle Vue CLI plugin for scaffolding bundle projects.

Note: Compatible with Node v10.x and newer.

Installing

The preferred way to install the Chameleon SDK for is to use the npm package manager. Simply type the following into a terminal window:

npm install @nsoft/chameleon-sdk

Modules

API

This module contains implemented data connectors. These connectors are used by sourceable mixin to load local and remote data. Currently we support only internal connectors to Chameleon and Ride infrastructure. Also, we have local connector that loads dummy data which can be used in local development of bundle.

Mixins

Apply mixins to get out of the box functionality for bundle and interaction with Chameleon Builder. Basic mixin is elementable and each element in bundle should apply it. Some other mixins depend on elementable mixin.

Utility

Module for common utility functions that are used internally or can be used in third-party bundle:

Implementing RESTful connector

To create compatible RESTful API that can be used in Chameleon system, API must create four methods that conform to methods currently used in our SDK:

Please consult Generic API connector documentation for details.