/wiotp-node

Primary LanguageJavaScript

wiotp-node

<> = placeholder value

Setup

  1. Clone repository
  2. cd wiotp-node

Run device locally

  1. cd <path/to>/wiotp-node/device
  2. ID=<unique device id> npm start

Run application locally

  1. cd <path/to>/wiotp-node/app
  2. ID=<unique app id> DEVICE_ID=<ID from device> npm start

Run application on Bluemix

  1. cd <path/to>/wiotp-node/app
  2. Target desired organization and space in Bluemix using cf login
  3. cf push <APP_NAME> --no-start
  4. cf set-env <APP_NAME> ID <unique app id>
  5. cf set-env <APP_NAME> DEVICE_ID <ID from device>
  6. cf start <APP_NAME>
  7. See live logs using cf logs <APP_NAME>