This application illustrates the use of various Meteor pub-sub patterns including
- Publishing a publication, subscribing to it, then displaying a list of documents (already in base)
- Displaying a loading template while waiting for a subscription to be ready (already in base, basically a feature of composeWithTracker from react-komposer)
- Publishing many documents with a subset of keys
- Subscribing based on a route parameter (already in base)
- Drilling into a single document and getting the remaining keys
- Joining two collections in a publication using the reywood:publish-composite package
- Displaying data from two joined collections together using helpers
- Pagination
- Infinite scroll
- Reactively displaying new documents
- Observing changes
Eventually this sample application will be described in a post on The Meteor Chef
Based on base. This means ReactJS and ReactRouter rather than Blaze and Iron-Router or FlowRouter.
To run this app:
- git clone https://github.com/MichelFloyd/meteor-pub-sub.git
- meteor npm install --save jquery bootstrap react react-dom react-router react-bootstrap react-komposer react-router-bootstrap jquery-validation babel-runtime bcrypt