Skip to content

Instantly share code, notes, and snippets.

@joscha
Last active December 10, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joscha/4512153 to your computer and use it in GitHub Desktop.
Save joscha/4512153 to your computer and use it in GitHub Desktop.
run with `coffee server`
exports.db =
host: 'localhost'
name: 'example'
exports.db.url = "mongodb://#{exports.db.host}/#{exports.db.name}"
config = require './config'
MongoMQ = (require 'mongomq').MongoMQ
queue = new MongoMQ
autoStart: true
host: config.db.host
collectionName: 'mongomq'
database: config.db.name
#queue.start()
exports.queue = queue
require './queue'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment