Skip to content

SINTEF-9012/sintef-ditto-nodejs-client

Repository files navigation

Ditto JavaScript client

npm node npm dom

This module is an extended version of the official TypeScript library to facilitate working the the REST-like HTTP API and web socket API of Eclipse Ditto. This project is used solely for research and academic purposes.

How to use it

Install sintef-ditto-javascript-client-dom for the DOM (browser) implementation, sintef-ditto-javascript-client-node for the NodeJS implementation.

More information can be found in the descriptions of the subpackages:

Compatibility with Eclipse Ditto

The newest release of the JavaScript client will always try to cover as much API functionality of the same Eclipse Ditto version as possible. There might however be missing features for which we would be very happy to accept contributions.

Coding

npm install
npm run build
npm run lint
npm test
# or npm run test:watch

Troubleshooting

If you get strange errors, it would be best cleaning all dependencies and starting from the beginning again:

npm run clean
# by hand delete node_modules in the root folder, or use a tool like rm, rimraf, etc.
npm install
npm run build
# ...

It is important to know that during install and build some extra processes are triggered.

Internals

This project is using lerna to split up the client into different packages. This way we can have standalone codeable subprojects (api, dom and node) but still are able to control dependencies, build processes or release processes globally.

For automatically generating barrel files, barrelsby is used during the build process.

About

Extended version of the official Ditto Node.js client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published