Last active
December 10, 2015 23:48
-
-
Save joscha/4512153 to your computer and use it in GitHub Desktop.
run with `coffee server`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.db = | |
host: 'localhost' | |
name: 'example' | |
exports.db.url = "mongodb://#{exports.db.host}/#{exports.db.name}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require './queue' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment