Open rubenheymans opened 9 years ago
CouchDB has replication - and at least Doctrine can handle CouchDB.
@schmunk42 I don't really understand your answer?
I'm going to try and implement firebase in yii2
they have an offline function too: https://www.firebase.com/docs/web/api/firebase/gooffline.html
when my app goes offline, users can continue to use it, sounds really great
Sorry, my bad ... this is the database client for your offline app: http://pouchdb.com Couchdb implemented in JavaScript.
interesting, but yii does not support Couchdb either? do you think couchdb / pouchdb is a better solution than firebase? realtime sync is not what I need, offline application is what I really need my knowledge of offline apps is nonexistent
I had good experiences with couch and pouch, haven't tried Firebase so far. As mentioned above, you can use doctrine, which gives you a data-access layer "like" Yii 2 AR for couch.
We used another approach though, by "exporting" MySQL data to JSON with https://github.com/dmstr/yii2-db/blob/master/db/behaviors/HydratedAttributes.php
https://www.firebase.com/
Don't just save data. Sync it.
When data changes, apps built with Firebase update instantly across every device -- web or mobile.
Firebase-powered apps work offline. Data is synchronized instantly when your app regains connectivity.