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
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
- Yarn
- pnpm
npm install
yarn install
pnpm install
-
To build SDK, run:
- npm
- Yarn
- pnpm
npm build
npm 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';