简体   繁体   English

android,iphone和webapp是否可以有一个平台/后端

[英]Is it possible to have a single platform/back end for an android,iphone and webapp

I am building an app which is nothing but an voting system. 我正在构建一个仅是投票系统的应用程序。 thousands of users will be voting. 成千上万的用户将投票。 The only way they can vote is through either android or iphone app. 他们投票的唯一方法是通过android或iphone应用。 The web application can only show the results of the vote and through the webapp the votes could only be readable. Web应用程序只能显示投票结果,并且通过Webapp只能读取投票。 I would like to know if I can build a common back end(as say if some one adds an vote through android app, it shud be seamlessly updated in iphone and web app) and diff UI for android, iphone and web app 我想知道我是否可以构建一个通用的后端(例如,如果有人通过android应用添加了投票,它将在iphone和web应用中无缝更新)以及diff UI(适用于android,iphone和Web应用)

I am mostly planning to use Java as back end. 我主要打算使用Java作为后端。 Could some one suggest any other easy back ends. 有人可以建议其他简单的后端吗?

Look into PhoneGap , it's great for making mobile apps across several OS's that only need simple javascript/html work. 查看PhoneGap ,非常适合在仅需要简单javascript / html工作的多个操作系统上制作移动应用程序。 From the looks of it, you already have a web application and could just wrap that using PhoneGap as a good starting point. 从外观上看,您已经有一个Web应用程序,可以使用PhoneGap将其包装为一个很好的起点。

Yes, this is very possible. 是的,这很有可能。 Look into what a REST api is. 查看什么是REST API。 There are different solutions available for you depending on what your backend is built in. You can use JSON to send/reply data to your backend in a uniform format that both your iOS and Android app can receive. 根据内置的后端,可以使用不同的解决方案。您可以使用JSON以iOS和Android应用均可接收的统一格式向后端发送/回复数据。

There are many Backend as a Service (BaaS) and Platform as a Service (PaaS) providers out there that allow you to do this very easily and cheaply. 那里有许多后端即服务(BaaS)和平台即服务(PaaS)提供程序,它们使您可以非常轻松,经济地进行此操作。 And a ton of documentation on your options: 关于您的选择的大量文档:

Looking for PaaS providers recommendations 寻找PaaS提供商的建议

http://www.quora.com/What-is-the-best-backend-as-a-service-provider http://www.quora.com/What-is-the-best-backend-as-a-service-provider

http://www.infoq.com/articles/paas_comparison http://www.infoq.com/articles/paas_comparison

Parse, Heroku and Stackmob are good starting points to check out. 解析,Heroku和Stackmob是检查的良好起点。

To answer your question "Is it possible to have a single platform/back end for an android,iphone and webapp": Yes it is possible. 回答您的问题“是否可以为android,iphone和webapp提供一个平台/后端”:是的,这是可能的。

You need a backend, which works on a server. 您需要一个在服务器上工作的后端。 On this backend then access all applications. 然后在此后端上访问所有应用程序。

You have already mentioned that many users will use your apps. 您已经提到许多用户将使用您的应用程序。 This means that you need a strong server and scaling or you use a backend as a service provider. 这意味着您需要强大的服务器和扩展能力,或者将后端用作服务提供者。

If you work with sensitive data, I would suggest you apiOmat . 如果您使用敏感数据,建议您使用apiOmat This provider is located in Germany and therefore strong security policies. 该提供商位于德国,因此拥有强大的安全策略。

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

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