安装
mac/linux:curl https://install.meteor.com/ | sh
常用命令
创建工程 meteor create <name>
运行 meteor
,默认是在3000端口
添加第三方开发包meteor add <name>
添加Android平台 meteor add-platform android
添加iOS平台 meteor add-platform ios
运行:
emulator:
meteor run android
meteor run ios
device:
meteor run android-device
meteor run ios-device
模板工程
clock: https://github.com/meteor/clock
leaderboard: https://github.com/meteor/leaderboard
localmarket: https://github.com/meteor/localmarket
simple-todos: https://github.com/meteor/simple-todos
simple-todos-react: https://github.com/meteor/simple-todos-react
simple-todos-angular: https://github.com/meteor/simple-todos-angular
todos: https://github.com/meteor/todos
todos-react: https://github.com/meteor/todos#react
angular2-boilerplate: https://github.com/bsliran/angular2-meteor-base
使用方法:
meteor create --example <name>
clone下之后,执行meteor npm install
推荐工程
-
angular-meteor
这个是使用angular2写meteor的例子
网友评论