Skip to content

mongolab/meteor-oplog-tailing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meteor-oplog-tailing-example

An example Meteor app that utilizes MongoDB oplog tailing.

Original blog post for reference: http://blog.mongolab.com/2014/07/tutorial-scaling-meteor-with-mongodb-oplog-tailing

Set up the app

> meteor create app

Once your Meteor project is created, cd into the "app" directory and copy the repo files there.

Bundle and extract the application

> meteor bundle app.tgz
> tar -zxvf app.tgz

Create a "local" database user

If you're using MongoLab, you can visit our docs to find instructions on creating a "local" database user.

Run the application with the command:

> PORT=3000 MONGO_URL=<your_uri> MONGO_OPLOG_URL=<your_local_uri> node bundle/main.js

About

Example of configuring Meteor oplog tailing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published