After we have configured and developed programs for the backend and frontend, we will compile and run the program. Consider the following steps:
- Firstly, we run the backend application, sensor-publisher.js. You can open the Terminal and navigate to the sensor publisher project. Then, type the following command:
$ node sensor-publisher.js
- After execution, we continue to run the frontend application. Run index.html on your web server. Then, open the browser and navigate to http://<server>/index.html. You should see the sensor data visualization, as shown in the following screenshot:
You also should see the program output ...