Skip to content

Mozilla-GitHub-Standards/a029fb3a744fd2e623e7c6154f86b53f8cbbd8c2149750ee30d19be761c76df7

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 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

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

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.7%
  • HTML 7.9%
  • Python 6.7%
  • CSS 2.7%
  • Makefile 2.0%