InternetOfPeers / hedera-sdk-js-standalone-library-example

This example shows how to build the Hashgraph SDK library as a standalone js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hedera SDK JS Standalone Library

This example shows how to build the Hashgraph SDK library as a standalone js. This is a temporary workaround, waiting for the same feature to be added to the official sdk.

Project Setup

npm install

Compile and Minify for production (lib versions: UMD, UMD minified and CommonJS)

npm run build:lib

Get and use the generated dist/assets/hedera-sdk-js-bundle.umd.min.js file. See public/example-lib.html for an example.

Compile and Minify for production (browser must support type="module")

npm run build

Get and use the generated dist/assets/hedera-sdk-js-bundle.js file. See public/example.html for an example.

Buil and test an example with the browser

npm run preview

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

About

This example shows how to build the Hashgraph SDK library as a standalone js.

License:Apache License 2.0


Languages

Language:HTML 62.9%Language:JavaScript 37.1%