Skip to content

Instantly share code, notes, and snippets.

@miamarti
Last active August 29, 2015 14:22
Show Gist options
  • Save miamarti/3f79b4ea4593b23ed2bc to your computer and use it in GitHub Desktop.
Save miamarti/3f79b4ea4593b23ed2bc to your computer and use it in GitHub Desktop.
[NOFUL] Example index.js
var Noful = require('noful');
var restService = new Noful();
var Host = restService.defaulHost({
host: 'localhost',
port: '27017',
database: 'test'
});
var domains = [
new Host('financial', '7e97189b91ec52a6274943c3277f57ac'), //?_token=****
new Host('reception'),
new Host('customer')
];
restService.start(domains, 3003);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment