xlab #7 - reactjs & nodejs

30
www.xsolve.pl Agile Software House ReactJS & NodeJS

Upload: xsolve-software-house

Post on 13-Apr-2017

164 views

Category:

Software


1 download

TRANSCRIPT

Page 1: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

ReactJS & NodeJS

Page 2: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

10:15 Who we are10:30 Configuration - Docker, NodeJS, ReactJS, Firebase11:00 NodeJS + Laser dust sensor SEN017713:30 Lunch14:00 ReactJS14:45 Our experience with SEN0177 15:00 Q&A

Agenda

Page 3: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Who we areKrzysztof Sopa Senior Front-end Developer

Krzysztof Woliński Front-end Developer

Robert Kasza Front-end Developer

Page 4: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Page 5: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Task-1NodeJS

ES6

Tests

Docker

Microservices

Page 7: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

SensorIntroductionPM2.5 laser dust sensor is a digital universal particle concentration sensor,it can be

used to obtain the number of suspended particulate matter in a unit volume of air within

0.3 to 10 microns, namely the concentration of particulate matter, and output with digital

interface, also can output quality data of per particle. The sensors can be embedded in a

variety of concentrations of environment-related instruments suspended particulate

matter in the air ,to provide timely and accurate concentration data.

Page 8: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

SensorHow it works?The sensor uses a laser scattering theory. And namely the scattering of laser irradiation

in the air suspended particles, while collecting the scattered light at a specific angle, to

obtain the scattering intensity versus with time curve. After the microprocessor data

collection, get the relationship between the time domain and frequency domain by

Fourier transform, and then through a series of complex algorithms to obtain the number

of particles in the equivalent particle size and volume units of different size. Each

functional block diagram of the sensor portion as shown

Page 9: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Sensor

Source: http://www.azom.com/images/Article_Images/ImageForArticle_9937(3).jpg

Page 10: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Sensor

Source: http://www.azom.com/images/Article_Images/ImageForArticle_12255(5).jpg

Page 11: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Sensor

Page 12: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

React & Redux

Page 13: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

What React is?

Page 14: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

What React is NOT?

Page 15: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

React AngularJS 1.5

One-way data binding One-way / Two-way data binding

Virtual DOM Regular DOM

Model-View (MV) Model-View-Controller (MVC)

JSX Templating HTML Templating

React Native for Mobile Ionic for Mobile

React vs Angular

Source: https://www.pluralsight.com/guides/front-end-javascript/angular-vs-react-a-side-by-side-comparison

Page 16: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

React’s philosophyComponents

Props

State

Page 17: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

import React from 'react';

exports class Greeter extends React.Component {

render() {

return (

<div>Hello {this.props.name} !</div>

)

}

}

Page 18: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

import React from 'react';

import Greeter from './greeter';

export default class App extends React.Component {

render() {

return (

<div>

<Greeter name="Bob" />

</div>

)

}

}

Page 19: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

<!-- Result -->

<div>Hello Bob!</div>

Page 20: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

If React is onlya view...how do we manage the rest of the stuff?

Page 21: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

How can we make it more organized?Flux/Redux

Page 22: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

What is Flux?

Page 23: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Source: https://facebook.github.io/flux/docs/in-depth-overview.html#content

Page 24: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Source: https://facebook.github.io/flux/docs/in-depth-overview.html#content

Page 25: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

What is Redux?

Page 26: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Redux’s flow - actions and stuffActionsReducersStore

Page 27: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Source: https://github.com/reactjs/redux/issues/653

Page 28: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

How does it cooperate with React?

Page 29: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

Thank you!

Page 30: xlab #7 - ReactJS & NodeJS

www.xsolve.plAgile Software House

xsolve.pl/career

We’re looking for JavaScript Developers to join our team in Gliwice and Warsaw.

Interested?