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

Node.js Dublin 2015 - Brewfactory: full-stack h...

Peter Marton
February 27, 2015

Node.js Dublin 2015 - Brewfactory: full-stack homebrew

Slides from the Node.js Dublin 2015 February

http://brewfactory.org/
http://www.nodejsdublin.com/

Peter Marton

February 27, 2015
Tweet

More Decks by Peter Marton

Other Decks in Programming

Transcript

  1. JavaScript everywhere 2007 2015 HW Microcontroller IoT devices from $10

    Control HW C, C++ Node.js: Johnny-Five, Tessel Web server .net, Java, PHP Node.js Database SQL MongoDB: JS API WebUI JavaScript: jQuery JavaScript: SPA (React, Angular etc.)
  2. Johnny-Five - “jQuery of the IoT” - servo.to( 90 );

    button.on(‘down’, fn); - Arduino compatible boards - Node.js
  3. Hardware parts - digital temp. sensor - DS18B20 (1-Wire) -

    heating elements - PWM (pulse-width modulation) - Relay (solid state) - controller - PID
  4. IoT device: RaspberryPi - credit-card sized - linux - usb

    ports - ethernet - NO built-in Wi-Fi - any languages
  5. BrewCore - Node.js ~0.12 / io.js - Koa - WebSockets

    - Spark’s cloud - https://github.com/BrewCore
  6. BrewUI - Isomorphic - React app with Flux - CommonJS

    (Node style) - available as npm module - https://github.com/BrewUI
  7. Why is it good for me? - power of server

    rendering - SEO - legacy support - speed of Single Page Apps (SPA)
  8. Isomorphic challenges - data fetching: talk about this later -

    init app on both sides - singleton app on client -> request scoped on server
  9. Data fetching problem - environment specific problems - should be

    shimmed - same functionality and interface - different implementation: AJAX / WS / DB call / micro-service / .. - “Full Stack Flux” - Pete Hunt: React.js Conf 2015 - Full Stack Flux