Sleds/K2Proxy
2025-03-13 15:28:38 -06:00
..
node_modules Initial commit part 2 2025-03-13 15:28:38 -06:00
.classpath Initial commit part 2 2025-03-13 15:28:38 -06:00
config.js Initial commit part 2 2025-03-13 15:28:38 -06:00
deploy.sh Initial commit part 2 2025-03-13 15:28:38 -06:00
hash.js Initial commit part 2 2025-03-13 15:28:38 -06:00
index.js Initial commit part 2 2025-03-13 15:28:38 -06:00
inum_map.js Initial commit part 2 2025-03-13 15:28:38 -06:00
json.js Initial commit part 2 2025-03-13 15:28:38 -06:00
k2_map.js Initial commit part 2 2025-03-13 15:28:38 -06:00
k2_udp.js Initial commit part 2 2025-03-13 15:28:38 -06:00
k2.js Initial commit part 2 2025-03-13 15:28:38 -06:00
README Initial commit part 2 2025-03-13 15:28:38 -06:00
requestHandlers.js Initial commit part 2 2025-03-13 15:28:38 -06:00
router.js Initial commit part 2 2025-03-13 15:28:38 -06:00
server.js Initial commit part 2 2025-03-13 15:28:38 -06:00
status.js Initial commit part 2 2025-03-13 15:28:38 -06:00
version.js Initial commit part 2 2025-03-13 15:28:38 -06:00

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