Faq

The MVC example appears to be broken, how do I run it.

When I open the file I get a blank screen with a bunch of "Failed to load resource: No 'Access-Control-Allow-Origin' header is present on the requested resource" and "XMLHttpRequest cannot load" errors.

While the one-document example can be opened in the browser directly, the mvc example must be run from a webserver. The easiest way is to install nodes http server, and start it up from the root

~/topcoat-touch$ npm install http-server -g ~/topcoat-touch$ http-server Starting up http-server, serving ./ on port: 8080 Hit CTRL-C to stop the server then open a browser to http://localhost:8080/examples/mvc/

How do I run the tests?

The tests are run from the command line through NPM. You can also see the test results on Travis-CI

~/topcoat-touch$ npm test

How do I run the tests in a web-browser?

Install http-server (see first question), and switch to the root directory and open http://localhost:8080/TestRunner.html in a web browser.

~/topcoat-touch$ http-server Starting up http-server, serving ./ on port: 8080 Hit CTRL-C to stop the server