简体   繁体   English

Flutter项目选择云数据库

[英]Choosing cloud database for Flutter project

I am creating a Recipe App on Flutter where it will hold recipes and I am here to humbly ask for suggestions on which Cloud Database should I be using to integrate with my app?我正在 Flutter 上创建一个 Recipe App,它将保存食谱,我在这里谦虚地询问有关我应该使用哪个云数据库与我的应用程序集成的建议? I will list down few of the things that I would be expecting the Cloud Database to handle for my app, maybe from the listed requirements may help you guys better in suggesting one.我将列出一些我希望云数据库为我的应用程序处理的事情,也许从列出的要求中可以帮助你们更好地提出建议。

Requirements:要求:

  • Users needs to login to use the app, so that the user can post their own Recipes to the Cloud Database.用户需要登录才能使用该应用程序,以便用户可以将自己的食谱发布到云数据库。
  • Users can publish some photos to post for their recipes (was considering to store google drive links).用户可以发布一些照片以发布他们的食谱(正在考虑存储谷歌驱动器链接)。
  • Users can see any recipes that are posted by other users.用户可以看到其他用户发布的任何食谱。
  • Users can favorite a recipe and keep it in their list.用户可以收藏食谱并将其保存在他们的列表中。
  • Users can comment on a recipe and give stars rating on it.用户可以对食谱发表评论并对其进行星级评分。
  • Users can view comments of a recipe that is written by others.用户可以查看其他人编写的食谱的评论。
  • Users will be able to search for a recipe and while searching, they can also apply one or more filters such as Cuisine Types, Rating Stars and other filters that may be applicable.用户将能够搜索食谱,并且在搜索时,他们还可以应用一个或多个过滤器,例如美食类型、评级星级和其他可能适用的过滤器。

Initially I was thinking to go with Firebase for creating projects with Flutter, considering the fact that I need to have User logins and No-SQL Database seems to be the best option for me to stick with when coming to Recipes and User reviews.最初我想使用 Firebase 来使用 Flutter 创建项目,考虑到我需要用户登录和 No-SQL 数据库似乎是我在进行食谱和用户评论时坚持使用的最佳选择。 However the problem here is, I am unsure if Firebase can perform the multi filter searches.但是这里的问题是,我不确定 Firebase 是否可以执行多过滤器搜索。 The query has to be flexible as I may perform searches with different filter parameters.查询必须灵活,因为我可能会使用不同的过滤器参数执行搜索。

If you had made up your mind with flutter.如果你用 flutter 下定决心。 so i will suggest you to go with Cloud-firestore .所以我建议您使用Cloud-firestore it ticks all your requirements.它符合您的所有要求。 Also, it has really good support with flutter.此外,它对 flutter 有很好的支持。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM