This document discusses building a clone of the project management tool Trello using the Meteor framework. It describes Meteor's principles like data on the wire and one language across client and server. The document shows how to create a Meteor project, add templates with Handlebars, define data collections with MongoDB, add event handlers, and deploy the project. It demos a Trello clone built with Meteor in under 100 lines of code.
26. trallo.js
// The Code here will run in both client & Server
Cards = new Meteor.Collection("cards");
if (Meteor.is_client) {
...
}
if (Meteor.is_server) {
...
}
20