Book Image

Meteor Cookbook

By : Isaac Strack
Book Image

Meteor Cookbook

By: Isaac Strack

Overview of this book

Table of Contents (19 chapters)
Meteor Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Integrating DDP with other technologies


The party never stops with DDP! DDP libraries are available for most major programming languages and platforms, and you can very quickly get your client, server, or even hardware devices talking to your Meteor server without much effort. This recipe will show you how to connect to a Meteor server using DDP from a Node.js program.

Getting ready

We'll want to use the code base from the Using client-only collections recipe, found in this chapter. Please create an instance of that project and start your meteor server.

You will need Node and npm installed to complete this recipe. They are installed with Meteor by default. However, if you need instructions on how to install Node.js and npm, they can be found on the following websites:

We will also need to make sure that the ddp npm module is installed. Open a terminal window and execute the following command:

$ npm -g install ddp

Tip

When installing npm modules...