https://github.com/remotesynth/launchdarkly-sdk-wrapper-example
https://github.com/remotesynth/launchdarkly-sdk-wrapper-example
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/remotesynth/launchdarkly-sdk-wrapper-example
- Owner: remotesynth
- License: mit
- Created: 2022-03-04T19:24:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T17:07:31.000Z (about 4 years ago)
- Last Synced: 2025-02-13T23:18:18.985Z (over 1 year ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LaunchDarkly Wrapper Example
This is an example project showing some ideas on wrapping the LaunchDarkly SDK for server-side Node.js and for client-side JavaScript. The example is intended only as guidance and not meant to be prescriptive of how you should create your own wrappers. The specific implementation of your SDK wrappers, should you choose to create them, depends on the needs of your application.
### How to run the example
1. You'll need a [LaunchDarkly account](https://launchdarkly.com)
2. From the flag dashboard, press command/control+k and copy the client side ID and server side SDK key.
3. Place these keys in a `.env` file in the root folder as follows:
```
LAUNCHDARKLY_SDK_KEY=
LAUNCHDARKLY_CLIENT_ID=
```
4. The app requires only a single boolean flag named `show-button`
5. To launch the app, run `npm install` and then use `npm run start`