mappmechanic codelabs - polymerjs introduction

16
mAppMechanic PolymerJS PolymerJS 1 Session 1 - Introduction

Upload: rahat-khanna-aka-mappmechanic

Post on 16-Mar-2018

375 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: MAppMechanic CodeLabs - PolymerJS Introduction

mAppMechanic PolymerJS

PolymerJS

1

Session 1 - Introduction

Page 2: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Agenda

2

• Evolution of Web • History of PolymerJS • Background about Web Components • Introduction to PolymerJS • Setting Up Dev Environment • Creating a Sample Polymer App • Using a Polymer Element

Page 3: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Evolution of Web

3

1993 - 1997: Static HTML Websites, GIFs, Minimal Javascript and DHTML

1995 - 2002: Dynamic Web Pages, Server Side Programming - CGI, Perl, PHP, JSP, Java

2002-2007: CMS Systems like Wordpress, Drupal, Joomla etc - HTML4, Initial Ajax, Canvas, Web Fonts

2008-2012: RIA Apps, Client Server Apps, CSS3, Animations, Offline, Responsive Design

2012-2014: Cloud Apps - Salesforce, Google Drive, MS Office 360, Paypal

3

2015-2016: User Experience - Front End MVC, Single Page Apps - Angular, React, Node, Nginx, IOT, Smartwatches

Page 4: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

History

4

Launched at Termed as Tectonic Shift in the Web

Page 5: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Web Components

5

Page 6: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Web Components

6

Page 7: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Shadow DOM

7

• Isolated DOM

• Scoped CSS

• Composition

• Simplifies CSS

• Productivity

Page 8: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

HTML Imports

Page 9: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

HTML Templates

Page 10: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Custom Elements

<my-component-new property=“Awesome”

onUpdate=“onChange”> </my-component-new>

Custom elements teach the browser new tricks while preserving the benefits of HTML.

Page 11: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Status

11

Page 12: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Introduction

12

• Official Support by Google

• Base platform includes set of Polyfills for Web Components • On top of it, provides excellent features & utilities like 2 way

data-binding, Computed Properties to build RIA apps

today.

• Stable version 1.0 released in 2015 (28/05/2015)

• Performance & use of latest Web Standards by everyone is the goal. It is also considering about PWA, Service Workers &

HTTP2

• Awesome catalog of re-usable elements for Rapid Dev

Page 13: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Introduction

13

Page 14: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Setting Up Dev Env

14

• Install Git.

• Install the current LTS version (6.x) of Node.js or newer.

• Install the latest version of Bower.npm install -g bower

• Install Polymer CLI.npm install -g polymer-cliYou're all set. Run polymer help to view a list of commands.

Page 15: MAppMechanic CodeLabs - PolymerJS Introduction

PolymerJSmAppMechanic

Creating Sample App

15

New App & Use a Simple Polymer Element

Page 16: MAppMechanic CodeLabs - PolymerJS Introduction

mAppMechanic PolymerJS 16

Thanks

mAppMechanic

twitter.com/mAppMechanic

linkedin.com/in/rahatkh

[email protected]