We've built a simple Electron application that demonstrates how LaunchDarkly's SDK works.
- Clone this repository:
git clone https://github.com/launchdarkly/hello-electron.git
- Go into the
hello-electron
directory. - If you want the application to display your own feature flags, instead of our example flags, edit
main.js
to setlaunchDarklyEnvironmentId
to the client-side ID for your LaunchDarkly environment (shown in Account Settings). (Note that your flags will only be available if you have checked the "Make this flag available to client-side SDKs" box in the feature flag settings.) - Install dependencies:
npm install
- Start the application:
npm start