Skip to content

Latest commit

 

History

History
 
 

openfeature-abtest-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

A / B Testing

Getting Started

Hosting OpenFlagr Server via Docker Compose

# cd to project root
docker compose up

Setting feature toggle

  1. Opening OpenFlagr admin dashboard http://localhost:18000/ in browser.

  2. Entering any flag description in field which contains hint Specific new flag description.

  3. Clicking the button Create New Flag.

  4. Modifying the flag key to blue-green-exp which is used as identifier in program.

  5. Clicking the button Save Flag to ensure the key has been modified.

  6. Creating two Variants with keys blue and green.

    Variant: the possible result for the feature toggle.

  1. Clicking button New Segment and creating a Segment with 100% Rollout.

    Segment: a specific subset of your user base or audience. Rollout: gradually exposing a new feature to a broader audience over time.

  1. Clicking button edit to edit Distribution, click checkbox to enable distribution for variant keys blue and green set distribution rate to 50% for each.

    Distribution: the distribution rate for specific variants.

  1. Enable the feature toggle

Running the demo App

# cd to project root
./gradlew -q --console plain :examples:openfeature-abtest-example:run