An example app built using the DevCycle JavaScript CDN
This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.
⇨ Click here to automatically create the feature in your project ⇦
When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.
Create a .env
file and set DEVCYCLE_CLIENT_SDK_KEY
to the SDK Key for your environment.
You can find this under Settings > Environments on the DevCycle dashboard. Learn more about environments.
npm run start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
For examples of mocking and testing with DevCycle, see the test suite in the DevCycle JS Module Example