browserquest/BrowserQuest — pull request #12 by justinclift (2012-09-22 18:55:16+00:00)
Title: Initial code to run both client and server over the same port.

***DO NOT MERGE THIS WITH MASTER***

This is working concept code only, for comment and sanity checking. :)

To try it out, apply this commit to your local git repo, start the BQ server, then connect to that with your browser.

i.e. http://server.example.org:8000/

The BQ server is now serving the client files too, all over the same port, so the client should load and work pretty well. (it does here testing on my systems, running Node.js 0.8.8)

This approach will probably suit developers and casual users very well (easier setup), but will get in the way of multi-node configurations. So, before committing this to the main BQ repo, we should make this a configurable option in the server configuration file. And clean up the code, test it on older Node.js, etc. :)