Getting started with TypeScript SDK
This section describes how to set up and install the TypeScript SDK and how to deploy a feature flag.
Step 1 - Setting up
To setup TypeScript SDK, follow these steps:
-
Create a CloudBees Feature Management account. See Signup Page to create an account.
-
Get your environment key.
-
Get the key from App Settings > Environment > Key.
-
Step 2 - Installing the TypeScript SDK
To add the CloudBees Feature Management TypeScript library to your application by running the
following npm
commands:
# Add TypeScript SDK package as your application dependency
$ npm i @types/rox-browser --save
Add the following lines of code to your application:
ES6 | CommonJS/AMD |
---|---|
|
|
Container class registration and environment key setup
|