Serve Ember App direct from CouchDB

I am testing replicating an Ember App across multiple CouchDB’s and here is my first working test.

https://martinic.cloudant.com/bloggrtest/_design/bloggrtest/_rewrite/

So the data and the application are now both in a CouchDB database. They could be in the same database.

I like to write a CouchDB plugin for ember-cli-deploy .

If you are interested in CouchDB and like to help me with that, contact me.

2 Likes

Just changed the CouchDB rewrite rules to rules that seem to work for all Ember App’s:

[
  {
    "from": "assets/*",
    "to": "assets/*",
    "method": "GET"
  },
  {
    "from": "fonts/*",
    "to": "fonts/*",
    "method": "GET"
  },
  {
    "from": "crossdomain.xml",
    "to": "crossdomain.xml",
    "method": "GET"
  },
  {
    "from": "robots.txt",
    "to": "robots.txt",
    "method": "GET"
  },
  {
    "from": "*",
    "to": "index.html",
    "method": "GET"
  },
  {
    "from": "",
    "to": "index.html",
    "method": "GET"
  }
]

Hey there,

A while back I wrote a ember-cli-deploy plugin for Couchbase, but its only the index adapter implementation right now. Hope it seems useful.

Archit

@archit all will help. It looks good. Perhaps I can make it work for CouchDB and Couchbase or are they still compatible?

Check https://github.com/Zatvobor/ember-couchdb-kit

It does not seem to do Deploy. But will take a closer look.

Actually started today GitHub - martinic/ember-cli-deploy-couchdb: An ember-cli-deploy-plugin to upload an Ember App directly to a CouchDB cluster. but there is noting to see yet. Trying to understand now if filePattern is something ember-cli-deploy provides or is it different per plugin ? See for example: https://github.com/dschmidt/ember-cli-deploy-cp

Just released v0.1.0-beta.2 GitHub - martinic/ember-cli-deploy-couchdb: An ember-cli-deploy-plugin to upload an Ember App directly to a CouchDB cluster.