简体   繁体   English

用于我的离子项目的最佳数据库

[英]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文档

You could use PouchDB a noSQL javascript couchDB clone. 你可以使用PouchDB一个noSQL javascript couchDB克隆。 It can synchronizes with a remote couchDB database and is easy to use in a local enviroment. 它可以与远程couchDB数据库同步,并且易于在本地环境中使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在我的数据库中实现此用途的最佳方法是什么? - Whats the best way to implement this use in my database? 如何在项目中使用使用sqlite创建的数据库? - How do i use the database created using sqlite in my project? 在Ionic2 / 3项目中哪里可以找到SQLite数据库? - Where to find SQLite database in Ionic2/3 project? 如何为多个子域上使用的项目设置数据库,哪种技术最适合使用? - How to set database for project used on multiple sub-domains and which technology is the best to use? 与WPF Datagrid一起使用的最佳数据库 - Best Database to use with WPF Datagrid django项目中数据库设计的最佳实践? - Best practice of database design in django project? 使用SQLITE数据库的数据在Ionic Project中填充或创建“服务”或“工厂” - Populate or Create a “service” or “factory” in an Ionic Project with the data of a SQLITE database 移动数据库会破坏我的项目吗? - Will moving my database break my project? 我的Cordova应用程序的最佳数据库选择 - Best database choice for my Cordova application 构造购物数据库的最佳方法? - Best way to structure my shopping database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM