Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Node in small places

Node in small places

A look at using NodeJS on $5 Raspberry Pi Zeros. Form my talk at NYCNode Nov 2016

Carlos Justiniano

November 16, 2016
Tweet

More Decks by Carlos Justiniano

Other Decks in Technology

Transcript

  1. About me • Carlos Justiniano (@cjus - github/twitter) • First

    IoT project in 2001 • Ten years later I learned about NodeJS • Deployed Node applications in production since 2011 • Chief Architect at Flywheel Sports - Note: we're hiring!
  2. No Wifi, no Ethernet Raspberry Pi Zero Raspberry Pi 3

    Uses USB based networking Has Ethernet, Wifi and Bluetooth and 4 USB ports Has two microUSB ports
  3. Linux Setup • $ diskutil list • $ diskutil unmountDisk

    /dev/disk2 • $ sudo dd if=./2016-05-27-raspbian- jessie-lite.img of=/dev/disk2 https://goo.gl/hhJJRE
  4. $ mkdir nodejs $ cd nodejs/ $ wget https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux- armv6l.tar.xz

    $ tar -xvf node-v6.9.1-linux-armv6l.tar.xz $ cd node-v6.9.1-linux-armv6l/ $ sudo cp ./bin/* /usr/local/bin
  5. –@cjus “Playing with single board computers is really cool. Getting

    them to communicate with one another is even cooler!”
  6. Connecting SBCs! • $sudo apt-get install {cool-app-name} • Install servers:

    nginx, redis, apache etc… • Create bots and connect with anything with a public API • Build messaging applications using rabbitmq, zeromq, MQTT