No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bg-change
control
copy-change
facebook-like
modal
.gitignore
.jscsrc
.jshintrc
README.md
expts.js
expts.prod.js
index.bundle.js
package.json
ung.json

README.md

TodoMVC A/B

This is a front-end A/B testing project that demonstrate how to use Abo for writing A/B tests.

These tests are changing the look of these TodoMVC website.

How to try it out?

First, clone the TodoMVC website mentioned above and make it hosted by, say, HarpJS.

Production mode

Next, install Ung, create an empty folder an run ung serve in it. It will host your A/B testing scripts. After that, run ung pack dev in the TodoMVC A/B director. It will bundle the scripts. After this, run ung publish dev that will send the bundled scripts to the running Ung server.

Now you'll have your experiment code hosted by Ung. Open the todomvc website and Abo will apply one of the experiments to the page.

Development mode

Running the Ung server is simulating how the scripts will be shipped to production. However, during development of the experiments, you won't need Ung setuped locally. Instead, you'll just use Foso to host the exect experiment that you want to develop. For example, if you want to change the Facebook Like experiment, go to the /facebook-like directory and run foso serve. It will bundle just the current experiment and use _bundle.js as the entry point. Next, run kibe('abodev') (Read more about Kibe here) in the console of the browser, when on TodoMVC. The page will reload and you'll see a demo of the Facebook like experiment. In this mode you'll be able to edit the experiment and the page will be automatically refreshed.

Tutorial

License

The MIT License (MIT)