Running a receiver application in Predix

To run a receiver app in Predix, follow this sequence:

  1. Install and connect the Сloud Foundry CLI to your Predix account.
  2. Create a PostgreSQL service and obtain the credentials.
  1. Create the ./receiver/manifest.yml file with the following content:
applications:-name: receivermemory: 128Mrandom-route: true
  1. Replace the database credentials in ./receiver/index.js.
  2. Deploy to the cloud:
cf push
  1. Change the REMOTE-SERVER-ADDRESS in the hub application on the RPi to the newly deployed receiver.

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.