Installation
Integration with the SDK consists of a few steps:
- Create .npmrc file in the root folder of the project with the following content:
@hiven-energy:registry=https://registry.npmjs.org
//registry.npmjs.org/:_authToken=${HIVEN_ENERGY_NPM_TOKEN}
always-auth=true
Obtain
NPM access tokenfrom Hiven Energy team. This token grants access to the private npm registry and enables the installation of packages for your project.Export
NPM access tokenasHIVEN_ENERGY_NPM_TOKENenvironment variable, so it can be populated in the .npmrc file:
export HIVEN_ENERGY_NPM_TOKEN=<token>
- Install the SDK using npm:
npm install @hiven-energy/hiven-client
or yarn:
yarn add @hiven-energy/hiven-client
- Poceed with smart charging implementation and enjoy using it.