make web as webapp

46
Make web as webapp lets design web as app

Upload: fred-lin

Post on 28-Jan-2015

112 views

Category:

Technology


3 download

DESCRIPTION

Talk in GTUG Taipei 2013/5/9. There's some work to make web as webapp. The slide addressed the extra steps for existing web site, and suggest some tools and guide for newly developed website. webapplate http://github.com/gasolin/webapplate FxOSBMI https://github.com/gasolin/FxOSBMI

TRANSCRIPT

Page 1: Make web as webapp

Make web as webapplets design web as app

Page 2: Make web as webapp

Google Reader

Page 3: Make web as webapp

Facebook

Page 4: Make web as webapp

Twitter

Page 5: Make web as webapp

Web sites are capableAnd can act as App

Page 6: Make web as webapp

WebAppMozilla proposed standard to

Make web act as app

Page 7: Make web as webapp

Current Platforms support WebApp standard:

● Desktop Firefox (Win, Mac, Linux)● Firefox for Mobile (Android)● Firefox OS

Page 8: Make web as webapp

Contact Calendar

Page 9: Make web as webapp

HTML5 + WebAPIWeb is the platform

Page 10: Make web as webapp

Enhanced web experience

HTML5

Page 11: Make web as webapp

HTML5 Support APIshttps://developer.mozilla.org/docs/HTML/HTML5

Page 12: Make web as webapp

WebAPIin-progress standards to facilitate

web capability

Page 13: Make web as webapp

Firefox supported WebAPIhttps://developer.mozilla.org/en-US/docs/WebAPI

Page 14: Make web as webapp

Approachs● Make it run● Make it good

Page 15: Make web as webapp

Make it Run● Enable Web Sites as Apps● MarketPlace

Page 16: Make web as webapp

1. Web Sites are Apps網頁即應用

Page 17: Make web as webapp

webapp types

● Hosted webapp● Packaged webapp

Page 18: Make web as webapp

Hosted webapp (dynamic or static)

● turn website into webapp● use offline appcache for no internet usage

Page 19: Make web as webapp

Packaged webapp (no server)

● Package files in .zip● Support more features with Permisions● No internet required

http://mzl.la/TUxIY3

Page 20: Make web as webapp

Summary: Steps to hosted webapp

● Dev web app using HTML, CSS & Javascript● Create an webapp manifest file● publish/install the app on public domain

● https://marketplace.firefox.com/developers/● MDN http://mzl.la/Szsehb

Page 21: Make web as webapp

webapp structure

MyApp● maniest.webapp● index.html● js● style

○ icons■ icon128.png

Page 22: Make web as webapp

index.html

<html><body>Hello World!</body></html>

icon128.png

Page 23: Make web as webapp

manifest.webapp{ "name": "MyApp", "description": "Hello World!", "launch_path": "/index.html", "developer": { "name": "gasolin", "url": "https://gasolin.idv.tw" }, "permissions": [ "contacts" ], "icons": { "128": "/style/icons/icon128.png" }}

Page 24: Make web as webapp

Setup

Page 25: Make web as webapp

Preview (new desktop icon)

Page 26: Make web as webapp

Preview (app screen)

Page 27: Make web as webapp

That is not APP!

let's move to the next stage

Page 28: Make web as webapp

Make it Good● Provide Develop Tools● Provide Develop Guidelines

Page 29: Make web as webapp

2. Applify the webdesign your web as app

http://mzl.la/V0MavA

Page 30: Make web as webapp

Expect for App experience

1. Just fit specific need2. Slick UI3. Fast4. Stable5. Works without internet6. Use mobile features

Page 31: Make web as webapp

It might means...

● Design matters● UI matters● Fast loadtime (< 1s)● Maintenable (Testable)● Offline appcache● WebAPI

Page 32: Make web as webapp

How do I start?in practice

Page 33: Make web as webapp

It might means...

● Design matters● UI matters● Fast loadtime (< 1s)● Maintenable (Testable)● Offline appcache● WebAPI

Page 34: Make web as webapp

Try on Simulator http://bit.ly/T249hs

Page 35: Make web as webapp

UI Demoshttps://marketplace.firefox.com/app/ui-demos/

Page 36: Make web as webapp

It might means...

● Design matters● UI matters● Fast loadtime (< 1s)● Maintenable (Testable)● Offline appcache● WebAPI

Page 37: Make web as webapp

WebApplate

● Best practices for new webapp development● Contain dev server, web templates, test

framework, help tools, deploy instructions

http://github.com/gasolin/webapplate

Page 38: Make web as webapp

WebApplate Features

● support hosted & packaged webapp development

● Speedy default server/client side configurations

● autotest & offline appcache generator

http://github.com/gasolin/webapplate

Page 39: Make web as webapp

Download from github

● https://github.com/gasolin/webapplate

or

● https://github.com/gasolin/FxOSBMI (example with Firefox OS UI building block)

Page 40: Make web as webapp

Setup

Need Node.js installed

update modules:# npm install

start server:$ node app.js

open localhost:8000

Page 41: Make web as webapp

Client side test in browser

Page 42: Make web as webapp

Help Tools

$ grunt

Page 43: Make web as webapp

Deploy

in github:git push origin gh-pages

in appfog:af update <myapp>

in heroku:git push heroku master

Page 44: Make web as webapp

It might means...

● Design matters● UI matters● Fast loadtime (< 1s)● Maintenable (Testable)● Offline appcache● WebAPI

Page 45: Make web as webapp

Firefox OS API Boilerplatehttps://github.com/robnyman/Firefox-OS-Boilerplate-App

Page 46: Make web as webapp

Resources

Developer Hub https://marketplace.firefox.com/developers/

Examples● FirefoxOS-boilerplate http://bit.ly/WAFLoe● FxOSBMI http://bit.ly/ZppWEA

Webapp Template● webapplate http://bit.ly/13sLd5j