K2Proxy is a node.js application. There is no build. Simply copy the
javascript source-code to the host you want to run it on.
The host must have node.js and some libraries installed.
To install node.js on Ubuntu via the package manager:
sudo apt-get update
sudo apt-get install -y python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
To install node.js on other platforms:
Pre-built node.js installers:
http://nodejs.org/download/
Official installation instructions:
https://github.com/joyent/node/wiki/Installation
To install the required libraries (after installing node.js):
npm install formidable
npm install sprintf-js
To start K2Proxy (from the path containing the source code):
node index.js [<daemonHost>[ <daemonPort>]]
The <deamonHost> and <daemonPort> parameters are optional. Defaults are
localhost and port 32000. If present, values are read from the K2Proxy
section of the config json file at /ionu/config/$IONU_ENV.conf.json.
Command-line parameters override the values read from the config json.
For more details, see the confluence page:
http://devhost.ionu.int:8090/confluence/display/DEV/Device+Notifications%3A+K2+and+Push