Hey Martin, Take a look at `couchdb-push`: https://github.com/jo/couchdb-push
It's by far the simplest Node.js-friendly "publish to CouchDB from the filesystem" thing I've seen. It includes a CLI, but can also be used from gulp, grunt, etc--I use it from gulp in most of my projects: http://github.com/BigBlueHat/BlueInk (etc) It follows the File System mapping very closely (unlike node.couchapp.js...): https://github.com/couchapp/couchapp/wiki/Complete-Filesystem-to-Design-Doc-Mapping-Example It does not support `_docs` inside of your CouchApp (or not-quite-a-couchapp-web-app-published-to-couchdb-thing ;) ): https://github.com/jo/couchdb-push/issues/5 However, you can create your own structure using gulp as I've done here (which even browserify's some contents in certain "magically named" folders): https://github.com/BigBlueHat/BlueInk/blob/master/gulpfile.js#L75-L105 Hope that helps! Benjamin -- http://bigbluehat.com/ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Martin Broerse Sent: Sunday, November 15, 2015 12:38 PM To: [email protected] Subject: Re: "Couch-served app" vs. couchapp Hi Bill, I am new in the couch world but like deploy our Ember Apps to CouchDB. I am now writing an ember-cli-deploy-couchdb plug-in. I also struggle a little with naming things. Deploying an Ember App to Couchapp does not sound right. Deploying your Couchapp as a 'Couch-served app' does not sound well. I was thinking calling it just `CouchDB Cluster` just like 'Apache HTTP Server' rejecting my first idea to call it CouchHTTP. CouchDB 2.0 will be a cluster by default so why not go with that? Can I use your commandline tool as a NPM module for my ember-cli-deploy-couchdb? Is it opensource? - Martin On Sun, Nov 15, 2015 at 5:40 PM, William Edney <[email protected]> wrote: > So I'm not sure if anyone here has any thoughts on this, so I thought > I'd throw it out there. > > My company will soon be launching a product that mates up with Couch > beautifully and we're very much leveraging CouchDB as our back end server. > In fact, we're using Couch not only as the database but as the web > server (hence, 'couch app'). > > The thing is that, given that we're an all-JavaScript shop, we're not > using the 'couchapp' Python script and we found the 'couchapp' NodeJS > module too limited (and frankly, too buggy) for our use, so we have > our own server-side JS command line tools for uploading and > maintaining the app in CouchDB. But we're still "launching" the app > right out of CouchDB, just like these other scripts allow you to do. > > The terminology I have been using for this is "Couch-served > application" so that folks don't get confused with 'couchapp', the > Python or JS script that is a specific implementation. > > I know there are other products out there that do similar things to ours. > Does the term 'Couch-served app' make sense to folks and should we be > using it this broader context or does someone have a better suggestion? > > Thanks for your input! > > Cheers, > > - Bill >
