get raspberry pi to run node on startup

JavaScript
su pi -c 'node /home/pi/server.js < /dev/null &'
Source

Also in JavaScript: