@Harun_Tuncay wrote:
Hi everyone,
I am trying to use CouchDB for an app.I have installed it succesfully and generated an app.Installed add-ons "ember-pouch" and "add-cors-to-couchdb".Configured the way "ember-pouch" document suggests.I have manually generated a document but it is not displaying.You can see request made and console log it gives on pictures.Also when i hit save button, it doesn't make any xhr request.I am alerting title to see if it is working, and it succesfully alerts title.
Here is the adapter;
import PouchDB from 'pouchdb'; import { Adapter } from 'ember-pouch'; PouchDB.debug.enable('*'); var remote = new PouchDB('http://127.0.0.1:5984/offline'); var db = new PouchDB('local_pouch'); db.sync(remote, { live: true, // do a live, ongoing sync retry: true // retry if the conection is lost }); export default Adapter.extend({ db: db });
As i said, this is my first time using couchDB.So if i have missed small detail, please reveal it to me and TIA.
Posts: 2
Participants: 2