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 C/C++ client or C/C++, as appropriate, from the language options.
-
Select a type of platform from the options.
-
Follow the instructions specific to your operating system to add the ROX package to your application:
Add the ROX package in Linux
To add the ROX package in Linux:
-
Install the prerequisites CMake, GCC, and Git with the following terminal command:
apt-get install cmake gcc git
-
Clone the Rox repository at the root of the workspace directory with the following terminal command:
git clone https://github.com/rollout/rox-c.git
-
Add the ROX package to your application with the following terminal command:
cd rox-c && ./install.sh -d /path/to/install/dir (1)
1 Replace /path/to/install/dir
with your path to the installation directory.
The SDK is now added to the specified subdirectory.
Add the ROX package in macOS
To add the ROX package in macOS:
-
Install the prerequisites CMake, GCC, and Git with the following terminal command:
brew install cmake gcc git
-
Clone the Rox repository at the root of the workspace directory with the following terminal command:
git clone https://github.com/rollout/rox-c.git
-
Add the ROX package to your application with the following terminal command:
cd rox-c && ./install.sh -d /path/to/install/dir (1)
1 Replace /path/to/install/dir
with your path to the installation directory.
The SDK is now added in the specified subdirectory.
Add the ROX package in Windows
To add the ROX package in Windows:
-
Install the following prerequisites and ensure the executables are added to your
PATH
:-
CMake 3.9 or higher
-
Visual Studio with C compiler tools installed
-
Git
These tools ensure that the OpenSSL and Curl libraries can be built on Windows.
-
Open the Cross Tools Command Prompt for VS, and then clone the Rox repository with the following terminal command:
git clone https://github.com/rollout/
-
Navigate to the repository root directory, and then add the ROX package to your application at the desired installation path with the following terminal command:
install %INSTALLATION_PATH% (1)
1 Replace INSTALLATION_PATH
with your path to the installation directory. -
(Optional) Add
%INSTALLATION_PATH%
to the system PATH variable.
The SDK is now added to the specified subdirectory.
-
-
Add the following code, as appropriate for your project, to import the SDK and create flags in your application:
CC++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.