Skip to content

Instantly share code, notes, and snippets.

View BenChirlinn's full-sized avatar

Ben Chirlinn BenChirlinn

View GitHub Profile
@BenChirlinn
BenChirlinn / socialcron.js
Created August 13, 2012 18:01
Node Cron with HTTP chained requests and request example
var Db = require('mongodb').Db;
var Server = require('mongodb').Server;
var cronJob = require('cron').CronJob;
var UpdateSocial = require('./socialupdate.js').UpdateSocial;
var mydb = new Db('node_mongo_social', new Server('localhost', 27017, {auto_reconnect: true}, {}));
mydb.open(function(){});
// Init
console.log("Starting cron");