mozilla-services/switchboard-experiments-kinto

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.