Shopify4j

@chrissuanders
Shopify

Define whether you need a mobile app or just craft to support mobile HTML. If you don’t have a big mobile team go for web based or at least use web based to figure out if you need to make the leap to native. 

Remember, if you release an iPhone only or android only app you will risk alienating a portion of your customers.

Native:

Code reuse between platforms, near impossible, don’t try it
Continuous deployment, difficult and not possible, worse in iOS

Web:

Cache manifest
Manifest=myappodl.manifest
Combined with a js hook to check and then do a window.location.reload() to reload app cache. 

———-


Building a quick mobile web app

Batman.js —— written in coffee script 
Batman.solo.js

Uses data attributes to manage elements, inside the Dom. See jquery
Skeleton.css for the frontend look. 

Es5shim.js

Meta tags
 apple-mobile-web-app-capable
 Initial scale, viewport, no zoom, width=device

div class=container

Restful backend to handle responses, pass back &forth data as json. 
Provided by rails 3.1

Batman.js similar to backbone.js, providing you an mvc structure you can “.extend”

@render false

Bind elements by class names, adding data js objects to them to bind them to methods (delete, list, show, etc.)

  1. doctorhyde posted this