run node js server on raspberry pi code example
Example 1: install node js on raspberry pi
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
Example 2: running node js on raspberry pi
node index.js
Example 3: get raspberry pi to run node on startup
su pi -c 'node /home/pi/server.js < /dev/null &'