Hybrid(2)meteor Running Android and iOS

Hybrid(2)meteor Running Android and iOS

1. Build the Android
Running on an Android emulator
> meteor install-sdk android

✗ Android emulator acceleration is not installed
  (The Android emulator will be very slow without acceleration)

follow this document to install that
https://github.com/meteor/meteor/wiki/Mobile-Dev-Install:-Android-on-Mac#haxm

> meteor add-platform android

> meteor run android

This will run on the emulator.

Real Android Device
> meteor run android-device

> meteor run android-device --mobile-server sillycat.meteor.com

2. Build the iOS
Running on an iOS Simulator

> meteor install-sdk ios

> meteor add-platform ios

> meteor run ios

Running on an iPhone or iPad
> meteor run ios-device
> meteor run ios-device --mobile-server sillycat.meteor.com

3. Try more Example
>meteor create --example todos
> meteor create --example localmarket

https://github.com/meteor/meteor/tree/devel/examples/localmarket

A lot of great example https://github.com/meteor/meteor/tree/devel/examples

leaderboard
localmarket
todos
other/wordplay

References:
https://www.meteor.com/try/7
https://www.meteor.com/try/12

http://docs.meteor.com/#/basic/

deployment
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-meteor-js-application-on-ubuntu-14-04-with-nginx
https://meteorhacks.com/deploy-a-meteor-app-into-a-server-or-a-vm
https://github.com/arunoda/meteor-up

client only
http://www.meteorpedia.com/read/Building_for_the_client_only
http://stackoverflow.com/questions/24600653/meteor-client-side-only-publish-subscribe
http://frozeman.de/blog/2013/08/using-meteor-as-frontend-library/

install grunt
http://sillycat.iteye.com/blog/1860773

ui part
http://getbootstrap.com/2.3.2/scaffolding.html#responsive
http://getbootstrap.com/
https://github.com/twbs/bootstrap
https://github.com/nghuuphuoc/responsivetest

你可能感兴趣的:(android)