The key features of the new Web SDK are:
- Availability on
- Angular 6+ support: The new Cumulocity Web SDK uses and supports Angular to develop applications on state-of-the-art technology.
- Module bundling: Through Webpack (a commonly used bundler) developers are now able to pack and deploy applications. This is based on the ECMA Script 2016 `import` statement. This makes composing of applications a lot easier and more variable.
Isomorphic module: The @c8y/client enables the access to our API with node.js or any browser framework (e.g. Angular 2-6) and is therefore isomorphic. That allows developers to use it for frontend- as well as for backend-tasks.
Try it out
To try the new Web SDK, install the new
$ npm install -g @c8y/cli
Create a new app by running:
$ c8ycli new myApp
myApp by navigating to the newly created folder, install all modules and finally serve the web app:
$ cd myApp
$ npm install
$ c8ycli serve
To get a deeper understanding of the full ecosystem we encourage you to look into the documentation.
Note: The Web SDK is currently in beta status and only useful for new applications based on Angular. We will soon release a story for developers to migrate their AngularJS plugins or widgets to also use the new SDK.