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. $ whoami - work: RisingStack, Inc. - twitter: slashdotpeter -

    email: peter@risingstack.com - blog: http://blog.risingstack.com
  2. 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.)
  3. Johnny-Five - “jQuery of the IoT” - servo.to( 90 );

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

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

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

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

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

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

    init app on both sides - singleton app on client -> request scoped on server
  10. 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