Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Kris Erickson edited this page Feb 3, 2014 · 1 revision

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?

~/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

Clone this wiki locally