This is an ultra simple express.js server that hosts a static file and communicates via socket from front- to backend. This is not for production. Just for prototyping in the upcoming blockseminar for the interface lab @ University of Applied Sciences Potsdam (Germany).
Download and unzip this package here.
Move with the terminal into the folder.
cd ~/Downloads/simplest-express-server/
Install the modules
npm install
Run it
node index.js
open http://localhost:3000.
Click the buttons.
Now you can add your code in the index.js file to control things in the backend1.
Footnotes
-
Might be something like an arduino board with Johnny Five or your Twitter account with Twit. ↩