Skip to content

Instantly share code, notes, and snippets.

@garbados
Last active December 24, 2015 00:49
Show Gist options
  • Save garbados/6719156 to your computer and use it in GitHub Desktop.
Save garbados/6719156 to your computer and use it in GitHub Desktop.
Very basic [node.couchapp.js](https://github.com/mikeal/node.couchapp.js) config files
var couchapp = require('couchapp'),
path = require('path');
ddoc = {
_id: '_design/app',
rewrites: [{
from: '',
to: '/index.html'
},{
from: '*',
to: '/*'
}],
views: {},
lists: {},
shows: {}
};
couchapp.loadAttachments(ddoc, path.join(__dirname, 'attachments'));
module.exports = ddoc;
{
"app": "app.js",
"db": "http://localhost:5984/couchapp",
"options": {
"okay_if_exists": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment