Serve Ember App direct from CouchDB


#1

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

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"
  }
]

#3

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


#4

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


#5

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


#6

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

Actually started today https://github.com/martinic/ember-cli-deploy-couchdb 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


#7

Just released v0.1.0-beta.2 https://github.com/martinic/ember-cli-deploy-couchdb