Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Node in small places
Carlos Justiniano
November 16, 2016
Technology
0
190
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
Share
More Decks by Carlos Justiniano
See All by Carlos Justiniano
Using Redis to orchestrate cloud-based file transfers at scale
cjus
0
200
Building Light-weight Microservices Using Redis
cjus
3
440
Graphs, GraphDBs and JavaScript
cjus
0
220
Building Microservices using Hydra
cjus
1
260
Node Microservices Using Hydra
cjus
0
97
Other Decks in Technology
See All in Technology
A Conditional Point Diffusion-Refinement Paradigm for 3D Point Cloud Completion
takmin
0
220
LINEのData Platform室が実践する大規模分散環境のCapacity Planning
line_developers
PRO
0
560
Unity Package Managerで自作パッケージを配布する方法
yunoda
0
200
toilを解消した話
asumaywy
0
210
SRE の歩き方・進め方 / sre-walk-through-procedure
rrreeeyyy
0
330
信頼性の階層の一段目を積み上げる/Monitoring Dashboard
shonansurvivors
0
180
インフラエンジニアBooks 30分でわかる「Dockerコンテナ開発・環境構築の基本」
cyberblack28
11
7.1k
New Features in C# 10/11
chack411
0
960
SRENEXT2022 組織にSREを実装していくまでの道のり
marnie0301
1
530
プルリク作ったらデプロイされる仕組み on ECS / SRE NEXT 2022
carta_engineering
1
360
LINE WORKS API 2.0について
mmclsntr
0
120
エンタープライズにおけるSRE立ち上げとNew Relic選定に至った背景とは / SRE Startup and New Relic in the Enterprise
tomoyakitaura
2
160
Featured
See All Featured
Streamline your AJAX requests with AmplifyJS and jQuery
dougneiner
125
8.5k
BBQ
matthewcrist
74
7.9k
From Idea to $5000 a Month in 5 Months
shpigford
372
44k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
498
130k
The Illustrated Children's Guide to Kubernetes
chrisshort
14
35k
Put a Button on it: Removing Barriers to Going Fast.
kastner
56
2.3k
Mobile First: as difficult as doing things right
swwweet
212
7.5k
Embracing the Ebb and Flow
colly
73
3.3k
Happy Clients
brianwarren
89
5.5k
The Invisible Customer
myddelton
110
11k
The Brand Is Dead. Long Live the Brand.
mthomps
45
2.7k
Product Roadmaps are Hard
iamctodd
34
6.1k
Transcript
Node in small places Carlos Justiniano (@cjus - github/twitter)
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!
Best tweet wins a RaspberryPi kit! #node-loves-pi #nycnode
#node-loves-pi #nycnode
Why SBCs?
How SBCs differ from other computers
None
None
Choosing an SBC
None
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
None
Setup!
A bit more hardware… +
Linux for SBCs
None
None
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
Boot time!
Networking • $ ping raspberrypi.local • $ ssh pi@raspberrypi.local •
$ scp ftw pi@raspberrpi.local/home/pi https://goo.gl/hhJJRE
NodeJS Setup https://goo.gl/hhJJRE
None
$ 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
$ cd ~ $ node --version v6.9.1
None
So what’s next?
Hello World!
None
–@cjus “Playing with single board computers is really cool. Getting
them to communicate with one another is even cooler!”
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
None
None
None
It’s demo time!
So what else can it do?
None
None
None
None
We’re ready for another demo!
None
The Hydra-Cluster is open sourced! https://github.com/cjus
#node-loves-pi #nycnode @cjus