如何制作角度。js app离线,服务器同步

时间:2022-10-31 18:29:20

I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, http://pouchdb.com/ looks like a cool solution but anyone has use it on production?

我正在寻找一个处理这个的方法或库。其想法是在localstorage中存储数据,并在连接可用时同步到后端,http://pouchdb.com/看起来很酷,但是有人在生产中使用过吗?

UPDATE:

更新:

Right now you can also use:

现在你也可以使用:

3 个解决方案

#1


10  

Haven't used it yet, but familiar w/ the concepts behind BreezeJS from their other offerings in .NET. Check it out http://www.breezejs.com/ and here's Ward Bell presenting it to the Googlers http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

还没有使用它,但是熟悉net中其他产品中BreezeJS背后的概念。查看http://www.breezejs.com/,以下是Ward Bell向google提供的http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

#2


2  

you can also take a look at jaydata http://jaydata.org/blog/synchronized-online-offline-data-applications-part-2-syncing-large-tables-and-tables-with-foreign-relations

您还可以查看jaydata http://jaydata.org/blog/synchronized-online-off -data-applications-part- sync- large tables- tablles -with-foreign relations

#3


-1  

breezejs is not a sync solution! if server data changes what happen in local data if some recordes deleted on server after last update local data must sync after a method called sync in other word some date must come back to client after calling savechange that tell client db to be sync with server

breezejs不是同步解决方案!如果服务器数据改变了本地数据中发生的情况,如果上次更新后服务器上删除了一些记录,那么本地数据必须在方法sync之后同步,换句话说,在调用savechange后必须返回客户端,告诉客户端db与服务器同步

#1


10  

Haven't used it yet, but familiar w/ the concepts behind BreezeJS from their other offerings in .NET. Check it out http://www.breezejs.com/ and here's Ward Bell presenting it to the Googlers http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

还没有使用它,但是熟悉net中其他产品中BreezeJS背后的概念。查看http://www.breezejs.com/,以下是Ward Bell向google提供的http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

#2


2  

you can also take a look at jaydata http://jaydata.org/blog/synchronized-online-offline-data-applications-part-2-syncing-large-tables-and-tables-with-foreign-relations

您还可以查看jaydata http://jaydata.org/blog/synchronized-online-off -data-applications-part- sync- large tables- tablles -with-foreign relations

#3


-1  

breezejs is not a sync solution! if server data changes what happen in local data if some recordes deleted on server after last update local data must sync after a method called sync in other word some date must come back to client after calling savechange that tell client db to be sync with server

breezejs不是同步解决方案!如果服务器数据改变了本地数据中发生的情况,如果上次更新后服务器上删除了一些记录,那么本地数据必须在方法sync之后同步,换句话说,在调用savechange后必须返回客户端,告诉客户端db与服务器同步