Cumulocity + Angular + Polymer (Web Components) boilerplate UI fiddle project.
This project was generated with Angular CLI version 6.1.2.
Make it easy to show the usage and/or fiddle around our newly-developing Angular 6+ data services and components as well as our framework-agnostic JS client lib. This also provides a free-playground to #rideWithTheHype of Angular + #webComponents, #polymer, and #useThePlatform.
-
Adapt the app context path of yours in
angular.json
(default toc8yangularpolymer
[sic.]). -
Configure the proxy target of REST API server in
proxy.conf.json
: change the target fromhttps://glenn.cumulocity.com
to your own Cumulocity tenant URL. -
Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/apps/{{app_context_path}}/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
- Run
ng build
to build the project. The build artifacts will be stored in thedist/
directory.
- Zip the contents under the
c8y-angular-polymer-boilerplate
directory without the enclosing directory itself. Note that the name of the ZIP archive has to be aligned with the app context path specified inindex.html
andproxy.conf.json
(default toc8yangularpolymer
).
Run yarn test
to execute the unit tests via Jest.
Run ng e2e
to execute the end-to-end tests via Protractor.
Glenn Dwiyatcita (@dwiyatci)
MIT.