
Meteor Cookbook
By :

Collections are the medium of communication between the client and the server, with changes being pushed down to the client and requests being pushed up to the server. This recipe will show you how and where to declare a collection for use on both the client and the server.
First, you will need Meteor installed and have a project created. To create a standard project file structure, please see the Setting up your project file structure recipe in Chapter 1, Optimizing Your Workflow.
For this particular exercise, you will also need to have the autopublish
and insecure
packages installed (which are installed by default). If you need to add them, please see the Adding Meteor packages recipe in Chapter 2, Customizing with Packages.
To implement a simple collection, proceed with the following steps:
both
folder, called simple.js
.simple.js
file in an editor, and declare a MongoDB comments collection by...Change the font size
Change margin width
Change background colour