csmtcy
October 11, 2015, 4:14pm
1
Hi all, i going to build an app that need to support for the offline state.
I did some research on the couchdb and pouchdb, but i don’t really know which one should i go to.
I planning to use the $http communicate with remote mysql database using php.
I plan to populate the sqlite database from remote mysql also. (Couchdb or Pouchdb able to replace sqlite ?)
What should i apply in this scenario ? or any other better solutions ? thanks.
i used pouchdb for a little test app. It works and looks good. And provides sync-methods out of the box.
http://pouchdb.com/getting-started.html#basic_two_way_sync
And it works together in the main parts with sqlite plugin. (search for cordova or sqlite)
http://pouchdb.com/adapters.html
1 Like
csmtcy
October 11, 2015, 7:22pm
3
So is that okay if i used mysql as remote database and communicate with php using http protocol ?
yep it should be possible
csmtcy
October 11, 2015, 7:38pm
5
So if i’m used the pouchdb, it will also auto populate the database right ?
Besides that, before this i’m used localStorage to some data like logged in user.
Should i store to couchdb now ? because i saw that ios deploy need to register with cloud ?
Thanks for your reply.
yeah but for so simple flags you would use the localstorage.
csmtcy
October 12, 2015, 7:00am
7
Okay, appreciate for your reply.
leob
October 12, 2015, 8:49am
8
1 Like
csmtcy
October 12, 2015, 9:49am
9
Thanks for your suggestion, will look into it.
mladen5
October 27, 2015, 9:36am
10
LokiJS seems like a really good SQLite alternative, i am just trying to rewriting some app with it.
You can choose where to persist data on localStorage or on filesystem, there is also changes API if you need to sync and dynamic view filter are really nice.
leob
October 27, 2015, 9:50am
11
Really cool, for now I’m just sticking with Firebase and some VERY limited usage of local storage but going forward I may want to have a serious look at this.