2. Meteor是什么
• Meteor is a set of new technologies for
building top-quality web apps in a fraction
of the time.
• Meteor是⼀一种新的敏捷高效,开发高质
量web应用的方式
• ⼀一种基于node.js的完整开发、运行环境
• Meteor to node.js = Rails to Ruby
3. web App 进化
• 1.0 portal client
html
server db
• 1.5 gmail client
json
server db
• 2.0 meteor client
data
db server
4. Meteor 的优势
1. Pure JavaScript
2. Live page updates
3. Clean, powerful data synchronization
4. Latency compensation
5. Hot Code Pushes
6. Sensitive code runs in a privileged environment
7. Fully self-contained application bundles
8. Interoperability
9. Smart Packages
5. Meteor七准则
• Data on the Wire
在网络上传送数据,而不是HTML,让客户端决定如何渲染。
• One Language
客户端和服务端使用同⼀一种编程语言(javascript)
• Database Everywhere
在客户端和服务端都可以访问数据库
• Latency Compensation
在客户端用⼀一种模拟的方式让用户感觉网站与数据库无延迟
• Full Stack Reactivity
从数据库到模板全部都是基于事件的实时更新
• Embrace the Ecosystem
开放,整合
• Simplicity Equals Productivity
简单,高效