An example app built using Vue.js and the DevCycle JS SDK
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.
- Run
npm install
in the project directory to install dependencies - Create a
.env
file and setVITE_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
Compile and Hot-Reload for Development
npm run build
Compile and Minify for Production
npm run test
Run Unit Tests with Vitest
For more information about using the DevCycle JS SDK, see the documentation