Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

best database to use for my ionic project

I’m looking for the best database to use for my ionic project. I want the user to store the database locally with the option of synchronizing that information a remote database as a payment option. Their data will be from any device by login to their user account. I have been looking at firebase Couchdb, and Parse but don’t know what I should go with. I have to keep in mind scaling my app. What are the best options out there?

like image 566
user1277281 Avatar asked Feb 10 '15 00:02

user1277281


2 Answers

LocalStorage is a great option if there is not much data to store locally. Or if you need a more flexible and larger database you might want to try IndexedDB or SQLite Plugin for Cordova(Ionic is built on top of Cordova), all of these options are for the client end.

But for the server end, I have used FireBase for one of my projects and I know it works like charm, if you are familiar with Polymer/Web Components all you have to do to have FireBase, add just one line of html and everything else is set up for you.

Links:
Cordova-LocalStorage Docs
SQLite-plugin Docs

like image 72
Adi Avatar answered Oct 21 '22 01:10

Adi


You could use PouchDB a noSQL javascript couchDB clone. It can synchronizes with a remote couchDB database and is easy to use in a local enviroment.

like image 37
Toxus Avatar answered Oct 21 '22 01:10

Toxus