samedi 9 septembre 2017

how do I connect Ember app with couchDB without using pouchDB

I am trying to connect ember with couch and i don't want to use pouchDB because it creates some time lag. I tried using nano package but it's giving the following error

./adapter/application.js

import DS from 'ember-data';

var nano = require('nano')('http://localhost:5984');
nano.db.create('alice');
var alice = nano.db.use('alice');

export default DS.JSONAPIAdapter.extend({

});

error on terminal




Aucun commentaire:

Enregistrer un commentaire