[英]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.