Last active
December 24, 2015 00:49
-
-
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
This file contains hidden or 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
| 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; |
This file contains hidden or 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
| { | |
| "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