通过Android应用程序和网站共享的关系数据库 - 最简单的方式最简单、应用程序、关系、方式

2023-09-07 22:34:07 作者:8.噌俓の戀噯

我有一个项目,我将开发一个Android应用程序和网站。他们都应该共享同一个数据库。 我想探讨所有的选项,我真的很困惑。

I have a project where I will develop an android application and a website. They both should share the same database. I am trying to explore all the options and I am really confused.

下面是我的要求: 1 - 我需要一个非常简单和轻松办法。我不是想学习;我只是试图把事情做好。

Here are my requirements: 1- I need an extremely simple and EASY way. I am not trying to learn; I am just trying to get things done.

2-数据库的设计,包括关系和外键。所以,我需要一个关系数据库。

2- The database design includes relationships and foreign keys. Therefore, I need a relational database.

3的用户 Android应用程序是限制;因为它不是一个应用程序,将在存储。和查询数据库的率是不深,但存储的数据将持续增长。所以,我想的扩展是很重要的。

3- The users of the android app are limited; as it is not an app that will be on the store. And the rate of querying the database is not extensive, but the data stored will continuously increase. So, I guess scalability is important.

4-我没有复杂的数据类型。也许只是文字和数字,尽管存储的图像将是很好了。

4- I do not have complex data types. Probably just text and numbers, although storing images would be nice, too.

5我也想提一提,需要推送通知。

5- I also want to mention that push notifications are needed.

我AP preciate如果你能提供给我的示例为您推荐的选项。我需要尽快开始越好。

I appreciate if you can provide me with examples for the option you recommend. I need to start as soon as possible.

感谢您

推荐答案

看看 www.parse.com

这是一个非常简单的基于云的数据库,与漂亮的API进行了大量的平台。它们支持推送通知和不错的功能,如saveEventually(),所以你并不需要一个稳定的互联网连接。

It is a really simple cloud based database with nice API's for a lot of platforms. They support push notifications and nice features such as saveEventually() so that you do not need a stable internet connection.

对于网站,我已经创建了一个角度演示,旨在生成一个简单的CRUD(创建更新和删除)接口进行简单的解析对象。

Regarding the website, I have created a demo for Angular that is aimed at generating a simple CRUD (Create update and delete) interface for simple Parse objects.

您可以在这里找到:语法分析的角度,污物,演示

免责声明:目前该项目已经采取了我一个星期来实现,所以很可能是一些shortcommings和/或错误

Disclaimer: Currently the project has taken me a week to implement, so might very well be some shortcommings and/or bugs.

可能是一个很好的起点你。

Might be a good starting point for you.

我使用Parse的经验:

这是我一直在开发的应用程序是一个消防队。这一个投票的短信中收到的所有相关信息,并在大文本显示。它可以显示消防栓和相关的PDF文件,他们正朝着地址。

The app that I have been developing is for a fire department. It receives all the relevant information during a turnout as SMS messages and displays them in large text. It can display hydrants and relevant pdf files to the address that they are moving towards.

我已经使用解析支持设备和使用推送通知之间共享preferences(配置文件),以广播有关的报警接收到的信息。这可以很容易地添加更多的设备,并安装更快(因为有很多设置)。

I have used Parse to support shared preferences (profiles) between devices and used push notifications to broadcast received information about an alarm. This makes it easy to add more devices and makes the installation much quicker (as there are a lot of settings).

对于较大的文件(消防栓和PDF),我已经使用Dropbox的同步API,但也可以同样,已经进行解析。因此,有从具有图像后来支持延长什么preventing你。

For the larger files (hydrants and pdf) I have used Dropbox Sync API but could just as well have been done with Parse. So there is nothing preventing you from extending with image support later on.