This JS file demonstrate how open a serial port to read it, and display read value over HTTP server.
Copy/Paste the script will display value at : http://localhost:3000 enjoy.
yarn add serialport
yarn add express
Or
npm install serialport
npm install express
node yourFile.js