Meteor se encuentra disponible para todas las plataformas.
Existe un instalador para Windows.
$ curl https://install.meteor.com | /bin/sh
This is the web framework I always wanted.— Garry Tan. Founder and designer, Posterous
This is great! Definitely something the industry needs right now.—Dustin Moskovitz. Co-founder, Asana; Co-founder, Facebook
$ meteor create myapp
$ cd myapp
$ meteor
=> Meteor server running on: http://localhost:3000/
<template name='level'>
<span class='level_number general'>Level {{ number }}</span>
<div id='level_playground'>
{{ #constant }}
<div id='editor'>{{ startCode }}</div>
{{ /constant }}
</div>
<input type='submit' id='code_submit' class='general' value='Go!'><!--
--><div id='console'></div>
</template>
Scores = new Meteor.Collection('scores');
Scores.allow({
insert: function (userId, doc) {
return check(doc.name, String) && check(doc.time, String);
},
update: function () {
return false;
},
remove: function () {
return false;
}
});
Meteor.publish('scores', function () {
return Scores.find();
});
Scores = new Meteor.Collection('scores');
Template.dock.scores = function () { return Scores.find({ createdAt: {$gt: new Date()} }); };
Template.level.events = {
'click #code_submit': function (event) {
event.preventDefault();
if ($('#code_submit').hasClass('to_next_level')) {
$('#code_submit').val('Go!').removeClass('to_next_level');
window.level.next();
} else {
window.runCode();
}
}
};
Meteor supports a variety of add-on packages and third party libraries. While you can build great applications using only the Meteor core functionality, optional packages can make development even faster and better.
$ meteor add <package_name>
$ meteor remove <package_name>
$ meteor list --using
Sin --using retorna todos los paquetes disponibles para agregar.
Meteor + Packages (Backbone, less, jQuery)
$ meteor deploy myapp.meteor.com
$ meteor deploy myapp.ohdominio.com
$ meteor bundle myapp.tgz