Power SDK installation
- Introduction
- Install The Power SDK using
npm
- Install The Power SDK from code
- Connect SDK to your project code
Introduction
You have two options to install The Power SDK:
- Using NPM.
- From Code.
Install The Power SDK using npm
To install The Power SDK using npm
, run the following command:
npm install @thepowereco/tssdk
Install The Power SDK from code
Disclaimer
This option is recommended only for experienced users, who understand how to build complex projects in node.js
.
Follow the steps below to install The Power SDK from code:
-
Download the project using the link.
-
Find the
tssdk
directory under the following path:PowerTools/packages/tssdk
-
Copy
tssdk
directory into your project directory. -
Go to
tssdk
directory using the terminal:cd your_project_directory/tssdk
-
To install SDK, run:
npm install
-
To build SDK, run:
npm build
Connect SDK to your project code
To connect SDK to your project code you need to specify the path to tssdk/tssdk/dist/index.js
.
For example, for your_project/index.js
file, you need to add the following into the file header:
import {* } from './tssdk/dist/index.js';