Check for rpi-gpio.js documentation and follow install instructions
$ sudo npm install rpi-gpio
In order to try a minimal sample we need to do the connections as follow:
Pin 1 sends 3.3v and the push button closes the circuit routing to pin 16. The resistors are needed for protecting GPIO from a potencial sending charge from pin 16 (acidentally you can set up your code for output through pin 16).
Listening for a pin change with S8
Start your S8 system server executing
$ sudo node n8.snapshot.js
take note of the server address e.g. SystemServer running at http://192.168.1.???:8088