Skip to Content
Industrial Internet Application Development
book

Industrial Internet Application Development

by Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli
September 2018
Intermediate to advanced
412 pages
11h 12m
English
Packt Publishing
Content preview from Industrial Internet Application Development

Running a receiver application on a PC

To run a receiver application on your PC, proceed as follows:

  1. Install and launch a PostgreSQL container:
docker run --rm --name postgres-container -e POSTGRES_PASSWORD=password -it -p 5433:5432 postgresdocker exec -it postgres-container createdb -U postgres iot-book
  1. Create the receiver folder.
  2. Create the ./receiver/package.json file with the following content:
{"name": "receiver","version": "1.0.0","description": "","main": "index.js","scripts": {  "start": "node index.js",  "test": "echo \"Error: no test specified\" && exit 1"},"author": "","license": "ISC","dependencies": {  "pg": "^6.2.3"}}
  1. Create the ./receiver/index.js file with the following content, replacing the database credentials with the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things

Giacomo Veneri, Antonio Capasso
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781788298599Supplemental Content