5. A full-stack, open source platform for building web and mobile apps in JavaScript
DDP Subscribe to changes in the database
MiniMongo Client-side in-memory mongodb
Tracker Rerun function when data changes
Blaze Reactive HTML templates
17. Load messages collection on the server
Storing messages in a collection - 2
meteor mongo
db.messages.insert( { username: "罗胖", text: "逻辑思维👍", createdAt: new Date()} )
db.messages.find({})
18. Connect Minimongo with React
Storing messages in a collection - 3
meteor npm install --save react-addons-pure-render-mixin
meteor add react-meteor-data
19. Storing messages in a collection - 4
Messages.find().fetch()
https://goo.gl/A6IpKF
20. meteor mongo
db.messages.insert( { username: "TJ", text: "DDP", createdAt: new Date()} )
Storing messages in a collection - 5
DDP - Subscribe to changes in the database