Vanir provides an end to end holistic approach to feature toggling.
At the core of the system sits a file that is expected to be located at .dolittle/features.json
within the
running backend. The expected format is as follows:
{
<feature-name>: {
"description": <human friendly description of the feature>,
"toggles": [
{
"type": "Boolean", // Boolean is currently the only supported type
"isOn": true/false // Specific data for the Boolean toggle type
}
]
}
}
Below you'll find more details about specific implementations that is built on top of the file.
Type | Description |
---|---|
GraphQL | Details on expected GraphQL schemas |
C# | Details on how to leverage it in C# |
TypeScript | Details on how to leverage it in TypeScript |
CLI | Details on how to work with features from the Vanir CLI |
React | Details on how to leverage it from React in the frontend |