I am writing an application with Angular.js and Node.js.
There is a client-side app written in HTML & Angular.js that needs a web server like Apache to be online.
There is also a server-side REST webservice written in Node.js, built on restify
(but I don't care which REST API I use, I can use another one).
I can get the whole thing working using a Node.js server for the REST webservice, and another Node.js server for serving the client-side webapp. But I'd like to have only one Node.js server running, on one URL/port (to prevent cross-domain AJAX requests).
How can I do so?