Skip to content

Commit 9a0ebc8

Browse files
authored
Add auto-create link to README.md (#4)
1 parent c9c1994 commit 9a0ebc8

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

README.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,11 @@
33
An example app built using the [DevCycle JavaScript SDK](https://docs.devcycle.com/sdk/client-side-sdks/javascript/)
44

55
## Creating a Demo Feature
6-
This example app is designed to have 3 different experiences: one for `user-1`, one for `user-2`, and the default experience for all other users. This requires that your project has a feature with the expected variables, as well as some simple targeting rules. To set up that feature:
7-
8-
* [Create a new Release feature](https://docs.devcycle.com/introduction/quickstart#2-create-a-feature) on the DevCycle dashboard and add the following variables:
9-
* A string variable with the key `togglebot-greeting`
10-
* Set this to a different greeting message for each of your variations.
11-
* A boolean variable with the key `togglebot-wink`
12-
* Set this to `true` in one variation and `false` in the other.
13-
* A string variable with the key `togglebot-speed`
14-
* Set this to `fast` in one variation, and `off` in the other
15-
* Create the following [targeting rules](https://docs.devcycle.com/essentials/targeting) in your Development environment:
16-
* A rule targeting the user with `User ID` `is` `user-1`
17-
* Target this user with your first variation
18-
* A rule targeting the user with `User ID` `is` `user-2`
19-
* Target this user with the other variation
20-
21-
Now when you run the example app and switch your identity between these users, you'll be able to see the different variations.
6+
This example app requires that your project has a feature with the expected variables, as well as some simple targeting rules.
7+
8+
#### [Click here](https://app.devcycle.com/r/create?resource=feature&key=hello-togglebot) to automatically create the feature in your project ⇦
9+
10+
When you run the example app and switch your identity between users, you'll be able to see the feature's different variations.
2211

2312

2413
## Running the example

0 commit comments

Comments
 (0)
close