unleash.nix
Unleash feature management with Nix
Requirements
- NixOS >=22.05
- Docker
- Nix with flakes enabled (
--extra-experimental-features flakes
)
Installation
$ nix develop
$ arion up -d
Testing
Visit localhost:4242
. Log in using:
- username:
admin
- password:
unleash4all
Creating new feature toggles via API
curl --location --request POST 'http://localhost:4242/api/admin/projects/default/features' \
--header 'Authorization: INSERT_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": "release",
"name": "",
"description": "",
"impressionData": false
}'
Adding user IDs to feature parameters
curl --location --request POST 'http://localhost:4242/api/admin/projects/default/features/INSERT_FEATURE_NAME/environments/development/strategies' \
--header 'Authorization: INSERT_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "userWithId",
"constraints": [],
"parameters": {
"userIds": "1"
}
}'