nodeJS on Raspberry Pi

Quickly and simply install Node.JS on Raspberry Pi 2 Raspbian

Update the system sudo apt-get update sudo apt-get upgrade Download the source curl -sL https://deb.nodesource.com/setup | sudo bash – Install it sudo apt-get install nodejs Check version number nodejs -v v0.10.40 Run it nodejs >console.log(‘hello mojo!’); hello mojo  

slide

Run NodeJS server on boot with forever on Raspberry Pi

LEGO Shop at Home: The World’s Biggest LEGO Shop Raspberry Pi is capable to host a NodeJS server. We want to use node’s forever module to keep our node server running, even when system restarts. Install forever Install forever and use the node app as root: sudo -i npm install forever -g Test run your nodeJS server app:…