[英]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. 我一直在看firebase Couchdb和Parse,但不知道我该怎么做。 I have to keep in mind scaling my app. 我必须记住扩展我的应用程序。 What are the best options out there? 有什么最好的选择?
LocalStorage is a great option if there is not much data to store locally. 如果本地存储的数据不多,LocalStorage是一个很好的选择。 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. 或者,如果您需要更灵活,更大的数据库,您可能需要尝试使用Cordova的IndexedDB或SQLite插件(Ionic建立在Cordova之上),所有这些选项都是针对客户端的。
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. 但是对于服务器端,我已经将FireBase用于我的一个项目,我知道它就像魅力一样,如果你熟悉Polymer / Web Components你需要做的就是使用FireBase ,只需添加一行html和其他所有内容是为你设置的。
Links: 链接:
Cordova-LocalStorage Docs Cordova-LocalStorage Docs
SQLite-plugin Docs SQLite-plugin文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.