Rollout.io - Documentation

Installing the Rollout Node.js SDK

The next step after creating your application is to install the SDK. The following are the steps for installing the SDK:

1. Add the Rollout SDK to your project

To add the Rollout Node.js library to your project, run the following npm command:

npm i rox-node --save

2. Initialize the Rollout SDK when the app starts

You will need your Rollout app key. This key is unique to your application and can be found in the Installation Instructions dialog or in the App Settings tab.

To initialize the Rollout SDK, click either ES6 tab or JavaScript tab and add the code to your project:

import Rox from 'rox-node';

await Rox.setup('<the app key goes here>');
const Rox = require("rox-node");

Rox.setup('<the app key goes here>');

That's it! Now your app is ready to use Rollout.

And with that, it's time to create a Rollout feature flag.

Installing the Rollout Node.js SDK


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.