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
insecure packages installed (which are installed by default). If you need to add them, please see the Adding Meteor packages recipe in Chapter 2 ...