Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timstott/microscope
Example Meteor application from the Discover Meteor book
https://github.com/timstott/microscope
Last synced: about 1 month ago
JSON representation
Example Meteor application from the Discover Meteor book
- Host: GitHub
- URL: https://github.com/timstott/microscope
- Owner: timstott
- Created: 2014-06-08T10:44:26.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-24T18:03:42.000Z (over 10 years ago)
- Last Synced: 2023-08-05T02:25:51.920Z (over 1 year ago)
- Language: JavaScript
- Size: 211 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microscope - Discover Meteor
# Notes to self
## Folder structure
* Code in the /server directory only runs on the server.
* Code in the /client directory only runs on the client.
* Everything else runs on both the client and server.
* Files in /lib are loaded before anything else.
* Any main.* file is loaded after everything else. Your static assets (fonts, images, etc.) go in the /public directory.## Find & Fetch
In Meteor, find() returns a cursor, which is a reactive data source. When we
want to log its contents, we can then use fetch() on that cursor to transform it
into an array .Within an app, Meteor is smart enough to know how to iterate over cursors
without having to explicitly convert them into arrays first. This is why you
won't see fetch() that often in actual Meteor code (and why we didn't use it in
the above example).