Class: StaticServer

StaticServer()

Server for static files

Constructor

new StaticServer()

Source:

Methods

adminUIsSharedPath()

Folder containing content common to all admin UIs.

Source:

generateSharedJS()

Generates "shared.js", to be used by all clients to connect to server.

  1. Create a copy of 'sharedTemplate.js'.
  2. Overwrite the serverURL variable with the IP + port of the current machine.

References:
http://stackoverflow.com/questions/3653065/get-local-ip-address-in-node-js
http://stackoverflow.com/questions/14177087/replace-a-string-in-a-file-with-nodejs

Source: