We've built a simple Electron application that demonstrates how LaunchDarkly's SDK works.
Below, you'll find the build procedure. For more comprehensive instructions, you can visit your Quickstart page or the Electron SDK reference guide.
- In LaunchDarkly, make sure you have at least one feature flag. For each flag, check the "Make this flag available to client-side SDKs" box in the flag's Settings tab.
- Edit
main.js
and set the value oflaunchDarklyEnvironmentId
to your LaunchDarkly client-side ID.
const launchDarklyEnvironmentId = 'myClientSideID';
- Install dependencies:
npm install
. - Start the application:
npm start
.
The application displays a table of flag keys and flag values for the example user.