Skip to content

Latest commit

 

History

History

OnOff

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

On/Off Testing Example

This is an OnOff testing example for @linecorp/linengine-jsflagr.

Turn on Docker client then run the local server.

  • Build project
yarn build
  • Run the dev flagr server
yarn dev:svr
  • Open http://localhost:18000/

Add flag key "hello-world-enabled" for feature HelloWorld and turn on it.

Flag key

Set two variant groups "Enabled" and "Disabled" to indicate launching feature HelloWorld or not.

Variants

Distribute "Enabled" and rollout 100% for going to launch.

Feature HelloWorld is enabled

Distribute "Disabled" and rollout 100% for stopping.

Feature HelloWorld is disabled

Run the example and check the outputs.

node examples/OnOff/index.mjs

Enabled

Feature HelloWorld enabled result

Disabled

Feature HelloWorld disabled result