Provided examples should help you with integration of this SDK with your app.
Deployment:
- When accessing examples via web browser always use
localhost
instead of127.0.0.1
. - Examples should be served via HTTPS.
- We recommend usage of NPM package https-localhost for simple local deployment.
To run TypeScript example:
-
Install example dependencies and build an application:
# Make sure you're in the 'ui/examples/typescript' folder # Install dependencies npm install # Build an application in folder 'dist/' npm run build
-
Runtime resources are copied to
dist/
folder during build action, checkrollup.config.js
file. -
Serve
dist/
folder, e.g. install globallyhttps-localhost
via npm and runserve dist/
.
To run JavaScript examples:
- Serve
javascript/
folder, e.g.serve javascript/
.- Make sure to have internet connection since runtime resources are loaded from the CDN.
- Alternatively, change resource paths and provide JS bundles.