Unity3D WebGL Testing

The WebGL build under Unity3D is getting more and more powerful with each release. 

One caviet to developing WebGL apps is that you can't just double click an exe to test them on your own machine. They need to run off a web-server. There are plenty of ways you could automate the upload, (ftp push, scp push, push to a git repo, where a post-commit hook somewhere does an automated fetch and deploy).

The easiest way to start testing however is to run a server on localhost. My preferred way to do this is via the node server, `http-server`. 

1) Firstly download node: https://nodejs.org/en/download/

2) Then install the http-server package (https://www.npmjs.com/package/http-server) 

Install via npm: 

npm install http-server -g

3) Within Unity3D do a deploy to WebGL

Now on the command line, navigate to the directory containing the project. Run

http-server . 

Now the contents of the directory will be available at http://127.0.0.1:8080