Control feature rollout for certain user segments of your application with feature flags. To start using feature management in the platform, follow the instructions below to install the SDK and deploy a feature flag.
These same instructions are available in the platform UI. Select Installation from the left pane to use. |
To install the SDK:
-
Select
. -
Select an Environment from the options, or create an environment by completing the following:
-
Select CREATE ENVIRONMENT.
-
Enter an Environment name.
-
(Optional) Enter a Description.
-
(Optional) Select Approvers if you want to have a manual approval required before deployment.
-
(Optional) Enter any Properties you want to associate with the environment. For more information, refer to properties configuration and properties in an environment.
-
Select SUBMIT.
-
-
Select JavaScript or Chromecast / Tizen from the language options.
-
Select a package manager from the options.
-
Add the ROX package to your application by running the shell commands appropriate for your package manager, listed in the following table:
Table 1. Commands to add the ROX package to your application Package manager Project Commands to run npm
JavaScript
npm install rox-browser --save
npm
TypeScript
npm install rox-browser --save
npm install @types/rox-browser --save
yarn
JavaScript
yarn add rox-browser
yarn
TypeScript
yarn add rox-browser
yarn add @types/rox-browser
-
Add the following code to your JavaScript application:
Your SDK key is a unique environment identifier. During SDK installation, the SDK key is displayed within the Rox.setup
call.1 The platform provides the unique SDK key for your environment at the <YOUR-SDK-KEY>
location within theRox.setup
call. -
Run your application and then select TEST INTEGRATION to confirm a successful connection.
After running the application, flags added in the code are automatically added to your feature flag list. |
You have installed an SDK and created flags in your application.
Refer to the SDK reference for more information. |
Download the code for link: an example Angular application with feature flags. |