-
Notifications
You must be signed in to change notification settings - Fork 4
/
MeteorJS Notes
69 lines (46 loc) · 2.47 KB
/
MeteorJS Notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
MeteorJS Notes
Meteor is a Full Stack JavaScript framework for web and hybrid mobile application development.
It makes a lot of things much easier.
************************ x ************************
************************ DEPLOYMENT ************************
Deploy to a Website:
You can easily deploy your project to a website hosted by Meteor with the following command
typed into the terminal in the project directory:
meteor deploy appName.meteor.com
Android:
To make your app run on android as a hybrid app type the following commands into the terminal
in the project directory.
Set up your project to be run on Android:
meteor install-sdk android
meteor add-platform android
Run on Android Emulator:
meteor run android
Run on Android Device (plug your android device into your computer using USB):
meteor run android-device
Or instead if you want to point your android app to the server you deployed on the web (which
you want to do because the above option just runs it on a local server, so once you end the
server connection on the terminal the app on your device will no longer have access to the server):
meteor run android-device --mobile-server appName.meteor.com
iOS:
To make your app run on iOS (if you are using a Mac) as a hybrid app type the following commands
in the terminal in the project directory:
Set up your project to be run on iOS:
meteor install-sdk ios
meteor add-platform ios
Run on iOS Emulator:
meteor run ios
Run on iOS device (if you have an Apple Developer Account):
meteor run ios-device
Or instead if you want to point your iOS app to the server you deployed on the web (which
you want to do because the above option just runs it on a local server, so once you end the
server connection on the terminal the app on your device will no longer have access to the server):
meteor run ios-device --mobile-server appName.meteor.com
iOS testing:
To test on an emulator that isn't an iPhone 4 (which it opens in the emulator by default) you
have to run "meteor run ios-device" on the command line (without an iOS device plugged into
your Mac) which will open up Xcode. Then open up the iOS emulator from Xcode, pick the device
you want, and run the app from Xcode.
************************ PACKAGES ************************
To use Bootstrap 3 run:
meteor add mizzao:bootstrap-3
************************ x ************************