How to make the Ember.js application standalone with server synchronization, if available

is there a library that handles this? like backbone.offline one ?, if not, will it be difficult to implement using Ember.js?

UPDATE

this question has two libraries that can help, Breeze.js and Jaydata ..

+8
html5 offline breeze
source share
3 answers

ember-localstorage .

It can be used as other adapters.

 App.store = DS.Store.create({ revision: 11, adapter: DS.LSAdapter.create() }); 

Another good library for ember and rails is ember-data-sync.js

Extend your App.Store from DS.SyncStore. Define the adapter that you want to use for client-side storage:

 App.Store = DS.SyncStore.extend({ revision: 10, adapter: DS.IndexedDB.adapter({ mappings: { person: App.Person, persons: App.Person, contact: App.Contact, contacts: App.Contact } }) }); 
+4
source share

There is no library for this, but you can implement it using an adapter. There is no API documentation and the only ones still available in the kernel are RESTAdapter and FixtureAdapter .

What you basically need to do is implement a couple of hooks and connect them to your application store.

+3
source share

You are looking for a solution and come to the ember-sync project.

This project copies to Ember-Data, ember-cli -ready and has a queue function that skillfully handles the CRUD backend record. From my brief look at this, I would say that this is a leading project for applications that support the offline application Ember.js.

One criticism that I would present in this project is that it should also be able to adapt to epf.io , which in itself is a replacement for Ember-Data and offers transactional CRUDs, nested stores and even nested storage options for each model.

At the time of writing, this project is still in alpha, although it seems to be moving in the right direction.

+1
source share

All Articles