<commit_before>Silent Disco - client
---------------------

Standalone client application for silent disco that is built via [AngularJS](http://angularjs.org).
Interactions are synchronized via web sockets.


Run
---

Update the following line in `src/main/webapp/app/index.html` to point to a running silent disco server by adding a `ws-base` attribute:

    <base href="." />

The default implementation will assume the websocket backend is running under the same host/port the client application is served on.

Create a `src/main/webapp/app/soundcloud/client.js` file based on the provided `client.sample.js` sample.

Deploy `src/main/webapp` directory to a webserver (i.e. Apache2 / asdf).


Test
----

> Requires [NodeJS](http://nodejs.org/) and [karma](http://karma-runner.github.com).
>
> Install karma `npm -g install karma@canary` + dependencies `npm update --dev`.
>
> Additionally paths to browser runtimes may need to be defined in environment variables:
> <code>PHANTOMJS_BIN</code>, <code>FIREFOX_BIN</code>, <code>CHROME_BIN</code>.

Run unit tests via `karma start src/test/javascript/config/karma.unit.js`.<commit_msg>chore(README): add note on backend integration test<commit_after>Silent Disco - client
---------------------

Standalone client application for silent disco that is built via [AngularJS](http://angularjs.org).
Interactions are synchronized via web sockets.


Run
---

Update the following line in `src/main/webapp/app/index.html` to point to a running silent disco server by adding a `ws-base` attribute:

    <base href="." />

The default implementation will assume the websocket backend is running under the same host/port the client application is served on.

Create a `src/main/webapp/app/soundcloud/client.js` file based on the provided `client.sample.js` sample.

Deploy `src/main/webapp` directory to a webserver (i.e. Apache2 / asdf).


Test
----

> Requires [NodeJS](http://nodejs.org/) and [karma](http://karma-runner.github.com) `>= 0.9`.
>
> Additionally paths to browser runtimes may need to be defined in environment variables:
> <code>PHANTOMJS_BIN</code>, <code>FIREFOX_BIN</code>, <code>CHROME_BIN</code>.


### Unit Tests

Run via `karma start src/test/javascript/config/karma.unit.js`.


### Backend Integration Tests

Run via `karma start src/test/javascript/config/karma.backend.js`.

> Currently fails on PhantomJS.
{'fraction_non_alphanumeric': 0.13105773282764432, 'fraction_numerical': 0.001685630004214075, 'mean_word_length': 3.9049586776859506, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7438747', 'n_tokens_mistral': 720, 'n_tokens_neox': 710, 'n_words': 246}