isomorphic aplication with javascript

41
Isomorphic Applications Javascript

Upload: hengki-sihombing

Post on 12-Apr-2017

293 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Isomorphic Aplication with Javascript

Isomorphic Applications Javascript

Page 2: Isomorphic Aplication with Javascript

ABOUT ME

Hengki Sihombing Building Karejo.com - Organizer JakartaJS

twitter @hengkiardo

github @aredo

[email protected]

Page 3: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Yes, fancy words

- but why should I care..?

Page 4: Isomorphic Aplication with Javascript

SERVER-SIDE

Just ship it all from scratch every time

So easy!!

Page 5: Isomorphic Aplication with Javascript

SERVER-SIDE

But poor user experience if you interact a lot

Page 6: Isomorphic Aplication with Javascript
Page 7: Isomorphic Aplication with Javascript

Traditional Web Framework

Page 8: Isomorphic Aplication with Javascript

Gimme some dynamic web pages already!

NOT GOOD ENOUGH

Page 9: Isomorphic Aplication with Javascript

• Pros: • Easy to reason about

• SEO out of the box

• Cons: • Every action is a refresh

• Poor user experience for dynamic apps

SERVER-SIDE

Page 10: Isomorphic Aplication with Javascript

CLIENT-SIDE (SPA)

Look ma’ I can do all the things

without reloading now!

Page 11: Isomorphic Aplication with Javascript

CLIENT-SIDE (SPA)

Page 12: Isomorphic Aplication with Javascript

CLIENT-SIDE (SPA)

Don’t you dare press the back button

Page 13: Isomorphic Aplication with Javascript

Modern Single Page Application

Page 14: Isomorphic Aplication with Javascript

Modern Single Page Application

Page 15: Isomorphic Aplication with Javascript

• Pros: • Actions without refresh the page

• Less redundancy, Better user experience

• Separate pure data from business logic

• Cons: • No content before the js loads / SEO

• Performance depend on users’ end devices

• Duplicate logic(URL routing, validation, ...etc.)

CLIENT-SIDE (SPA)

Page 16: Isomorphic Aplication with Javascript

BUT I WANT IT ALL!

Page 17: Isomorphic Aplication with Javascript

SERVER SIDE + SPA

Get all your stuff done!!

Page 18: Isomorphic Aplication with Javascript

BUT

Page 19: Isomorphic Aplication with Javascript

SERVER SIDE + SPA

Two separate codebase for the same application

Page 20: Isomorphic Aplication with Javascript

Approaching..

Page 21: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 22: Isomorphic Aplication with Javascript

• A concept of JS web framework that shares Javascript run on both client side and server side.

• Reuse all codes Flexible for developer • Bootstrap initial page via server rendering • Font-end rendering/Back-end rendering

ISOMORPHIC

Page 23: Isomorphic Aplication with Javascript
Page 24: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 25: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 26: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 27: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 28: Isomorphic Aplication with Javascript

ISOMORPHIC JAVASCRIPT

Page 29: Isomorphic Aplication with Javascript

How we can do it..??

Page 30: Isomorphic Aplication with Javascript

So many options..

Page 31: Isomorphic Aplication with Javascript
Page 32: Isomorphic Aplication with Javascript
Page 33: Isomorphic Aplication with Javascript

A library for creating user interfaces

https://facebook.github.io/react/

Page 34: Isomorphic Aplication with Javascript
Page 35: Isomorphic Aplication with Javascript
Page 36: Isomorphic Aplication with Javascript

+

Page 37: Isomorphic Aplication with Javascript
Page 38: Isomorphic Aplication with Javascript

Let’s Demo OneThe Simplest isomorphic

Javascript app?

Page 39: Isomorphic Aplication with Javascript

Redux

Flux Framework

Page 40: Isomorphic Aplication with Javascript

meetup.com/JakartaJS

How to keep up to date on Javascript Technologies??

Page 41: Isomorphic Aplication with Javascript

Thank you