Using Express to structure our application
Firstly, we need to create a structure for our application. As previously mentioned, we are going to use Express to do this.
Through Express, we will separate the data acquisition from the interface. You can visit the official site given here to learn how Express works, how to use it for the first time, how to handle errors, and a lot more at http://expressjs.com/.
The measurement part will stay in Node.js. Since Node.js is an asynchronous event-driven type of framework, it can easily build fast and scalable net applications. This is what makes it efficient and lightweight to use, and a perfect choice if one wants to run real-time and data-intensive apps on multiple devices.
Meanwhile, the interface will use Jade, which is a Node.js templating engine created for HTML.
We will then link up both Node.js and Express to the Jade interface using JavaScript.
As for the hardware, we can reuse the one that we made for our data monitoring project - the one...