DAY WORLDWIDE
$ curl https://install.meteor.com | /bin/sh
$ meteor create myapp
$ cd myapp
$ meteor
=> Meteor server running on: http://localhost:3000/
var Things = new Meteor.Collection("things");
Things.find(id);
Things.findOne();
Things.insert({'thing': url});
Things.update(id, { $set:{'herp': 'derp'});
Things.remove(id);
// server: publish the photos collection
Meteor.publish("things", function () {
return Things.find(); // returns all the things
});
// client: subscribe to the photos collection
Meteor.subscribe("things");
<template name="theThings">
{{#if things}}
<ul>
{{#each things}}<li>{{url}}</li>{{/each}}
</ul>
{{/if}}
</template>
Template.theThings.helpers({
things: function(){
return Things.find()
}
);
$ meteor deploy myapp
$ meteor deploy www.myapp.com
$ meteor build test
because standard deployment is old news.
Update your app while users are connected without disturbing them. When you push a new version, the new code is seamlessly injected into each browser frame in which the app is open.
$ meteor add-platform ios/android
Adds platforms to your Meteor project. You can add multiple platforms with one command. Once a platform has been added, you can use 'meteor run platform' to run on the platform, and 'meteor build' to build the Meteor project for every added platform.