Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1.31 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.31 KB

Examples

Provided examples should help you with integration of this SDK with your app.

Deployment:

  • When accessing examples via web browser always use localhost instead of 127.0.0.1.
  • Examples should be served via HTTPS.
    • We recommend usage of NPM package https-localhost for simple local deployment.

TypeScript Example

To run TypeScript example:

  1. Install example dependencies and build an application:
    # Make sure you're in the 'examples/typescript' folder
    
    # Install dependencies
    npm install
    
    # Build an application in folder 'dist/'
    npm run build
    
  2. Runtime resources are copied to dist/ folder during build action, check rollup.config.js file.
  3. Serve dist/ folder, e.g. serve dist/.

ES Bundle

To run ES bundle example:

  1. Serve es-module/ folder, e.g. serve es-module/.
    • Make sure to have internet connection since runtime resources are loaded from the CDN.
    • Alternatively, change resource paths and provide JS bundles.

UMD Bundle

To run UMD bundle example (standard browser integration):

  1. Serve umd/ folder, e.g. serve umd/.
    • Make sure to have internet connection since runtime resources are loaded from the CDN.
    • Alternatively, change resource paths and provide JS bundles.