An Introduction to Meteor
@jef_lau
The API is the same front and back-end. You can access the database from the front-end like this:
var Friends = Mongo.collection(‘friends’);
Friends.find();
Works in both client and server
Uses 'Minimongo' to cache a data on the client
Meteor is not just a framework. It's a platform.
It's has it's own packaging system
$ meteor add bootstrap
$ meteor deploy javascripttaipei.meteor.com
It has it's own deployment system (with free testing servers)
All layers, template to database update themselves when necessary.
var Chat = Mongo.collection('chat');
Template.chatApp.helpers({
messages: function(){
return Chat.find();
}
}
//html
<template name="chatApp">
{{#each messages}}
{{text}}
{{/each}}
</template>
Simulate the server's action on client before the server has responded
Client feels really responsive. UI is updated before server responds
Cordova is the standard for building JavaScript based mobile-apps.
Cordova CLI integrated into Meteor CLI
Write once deploy to web, iOS, Android