Name: switchboard-experiments-kinto
Owner: Mozilla Services
Description: An experimental admin console for managing switchboard-experiments data using Kinto
Created: 2016-04-15 13:28:13.0
Updated: 2017-06-02 12:56:25.0
Pushed: 2017-06-02 14:30:25.0
Homepage: https://mozilla-services.github.io/switchboard-experiments-kinto
Size: 450
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project let you manage the configuration files for managing switchboard-experiments data using Kinto.
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
Enter the switchboard folder, then you can start the demo app by running:
npm install
npm run start
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"}
);
Apache-2.0