Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

DEPRECATED - An experimental admin console for managing switchboard-experiments data using Kinto

Notifications You must be signed in to change notification settings

mozilla-services/switchboard-experiments-kinto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

switchboard-experiments-kinto

This project let you manage the configuration files for managing switchboard-experiments data using Kinto.

Setup the collection

Enter the kinto-bootstrap folder, then you can setup the collection on a kinto server by running the following command:

make migrate \
    SERVER_URL=https://localhost:8888/v1 \
	AUTH=token:switchboard \
	BUCKET=switchboard \
	COLLECTION=features

Test the feature

Enter the switchboard folder, then you can start the demo app by running:

npm install
npm run start

Use ABTesting utils in your own project

You can use the ABTesting.js file like that:

<script src="ABTesting.js"></script>

And then you can use the ABTesting functions:

ABTesting.isActivatedFeature(
  {match: {}, buckets: {min: "75", max: "90"}}, {deviceID: "abcdef"}
);

License

Apache-2.0

About

DEPRECATED - An experimental admin console for managing switchboard-experiments data using Kinto

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published