简体   繁体   English

如何托管共享云上同一数据库的用户可以在浏览器,Android和iOS上使用的Web服务?

[英]How can I host a web service that can be used on browser, Android and iOS by users sharing a same database on cloud?

I am doing a project on the attendance system inside a school. 我正在做一个关于学校内考勤系统的项目。 A website, hosted on cloud, will be used to save the attendance records. 云上托管的网站将用于保存出勤记录。 Android and iOS apps could access to the same cloud and get the updated information on time. Android和iOS应用程序可以访问相同的云并按时获取更新的信息。 To do this, I found some sloutions like Flutter from Google and NodeJS. 为此,我找到了一些类似的工具,例如Google的Flutter和NodeJS。

I had tried doing the Django web app and NodeJS. 我尝试过做Django网络应用程序和NodeJS。 But hosted Django app doesn't work well on Android and iOS but on Browser. 但是托管的Django应用无法在Android和iOS上正常运行,而只能在浏览器上运行。

What I am looking for is a development framework which can be used on Android, iOS and web browser. 我正在寻找的是一个可在Android,iOS和Web浏览器上使用的开发框架。 So, if I change code, the changes happen to all those three platforms. 因此,如果我更改代码,则所有这三个平台都会发生更改。

Basically, it is an IoT project. 基本上,这是一个物联网项目。 So, I would like to get your opinions on how should I develop this and what development platform or language should I use? 因此,我想就如何开发该软件以及应该使用哪种开发平台或语言获得您的意见。

Thanks for your help! 谢谢你的帮助! 😊 😊

If you want to create a service that allows you to get attendance on the 3 platforms you listed, you could achieve that with just a web application. 如果您想创建一项服务,使您能够在列出的3个平台上出勤,则可以仅通过Web应用程序来实现。 Using a front-end framework you could layout the site to look differently on a computer and on mobile devices. 使用前端框架,您可以布局网站,使其在计算机和移动设备上看起来都不同。 This would probably be the easiest way to achieve literally one codebase. 这可能是实现一个代码库的最简单方法。

If you want to have an app for iOS Android and the web then you could probably take a look at React. 如果您想拥有适用于iOS Android和Web的应用程序,则可以看看React。 You could use Node.js as your backend, React.js for web and React Native for iOS and Android. 您可以将Node.js用作后端,将React.js用于Web,将React Native用于iOS和Android。

Flutter also works but flutter web is kinda new so there might not be as much documentation out there for the web part. Flutter也可以使用,但是Flutter Web有点新,因此关于Web部件的文档可能不多。

Depending on how long you have to develop this I think the first option would be the better choice if you have a very limited time 根据您需要开发多长时间,我认为如果您的时间很有限,那么第一个选择将是更好的选择

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

相关问题 我可以使用与iOS相同的Android数据库吗? - can I use the same database for android which I used for ios? 如何通过我的Android应用程序为网络服务验证用户身份? - How can I authenticate users via my android app for a web service? 我可以创建一个 android、ios 和 web 与 Z4FBA3BC02B72EE9A7387A1EZC66 相同的代码库吗 - Can I create an android, ios and web with the same codebase of kotlin Android应用程序:我可以使用iOS sqlite吗? 如果没有,如何从云中的数据库(Parse.com)创建本地数据库? - Android App: can I use iOS sqlite? If not, how do I create a local database from a database in the cloud (Parse.com)? 创建可以使用Web / iOS / Android的数据库 - Creating a database that can work with Web/iOS/Android 如何在同一活动中使用两种Web服务方法? - How can i use two web service methods in the same activity? 如果我在android应用程序中调用网络服务网址,那么用户能否发现所使用的网址? - If I call a web service url in an android application, can a user discover the url that was used? 如何在Android中调用HTTPS Soap Web服务 - How can I call a HTTPS soap web service in Android 我如何使用Android从Web服务获取数据 - How can i get data from web service using android 如何将android连接到php web服务 - How can I connect android to a php web service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM