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
- Yarn
- pnpm
npm install @thepowereco/tssdk
yarn add @thepowereco/tssdk
pnpm add @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
tssdkdirectory under the following path:PowerTools/packages/tssdk -
Copy
tssdkdirectory into your project directory. -
Go to
tssdkdirectory using the terminal:cd your_project_directory/tssdk -
To install SDK, run:
- npm
- Yarn
- pnpm
npm installyarn installpnpm install -
To build SDK, run:
- npm
- Yarn
- pnpm
npm buildnpm build
# couldn't auto-convert commandnpm build
# couldn't auto-convert command
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';