使用移动应用程序开发新的 Web 应用程序

发布于 2024-11-16 12:24:17 字数 404 浏览 5 评论 0原文

我正在启动一个新项目,其中包括为基于工作订单的系统构建一个网络应用程序。 主要视图有:

  1. 查看所有打开/关闭/保留的工作订单、
  2. 查看工作订单的详细信息、
  3. 创建新的工作订单、
  4. 帐户管理。

除了作为网络应用程序之外,它还应该充当移动应用程序。

执行此操作的最佳方法是什么?我需要为移动端开发一个单独的应用程序吗?我可以使用我的 webapp + sencha、jquery mobile 等可以与我的逻辑、类、HTML 结构配合使用的东西,使其在移动设备上有效工作吗?

或者我应该先开发一个移动版本,然后考虑逐步增强网络应用程序(网站)?

这个问题对流程、过程、技术的所有解释都是开放的。

谢谢堆栈溢出者。

I have a new project starting up that consists of building a webapp for a workorder based system. The main views are:

  1. Viewing all open/closed/hold work-orders,
  2. View Detail of Workorders
  3. Create new Work orders
  4. Account management.

In addition to being a webapp, it should also function as a mobile app.

What is the best approach for doing this? Will i have to develop a separate app for the mobile side? Can i use my webapp + sencha, jquery mobile, something.. that can work with my logic, classes, HTML structure to have it effectively work on mobile?

Or do i develop a mobile version first and think about progressive enhancement to the webapp (website)?

This question is open to all interpretations of flow, process, technologies.

Thank you Stack Overflowers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉城已无爱 2024-11-23 12:24:17

将业务逻辑和模型代码与视图层分离。然后使用 sencha touch 和 Extjs 创建 Web 和移动(至少移动 Web)应用程序。然后,您可以重用模型和业务逻辑代码,并使用不同的框架来管理视图。当您运行移动应用程序时,使用手机间隙将其转变为成熟的应用程序(假设您需要访问仅限手机的系统(相机等))。

我们使用构建在 Ext 和 Sencha 之上的自定义框架来完成此任务。我们使用 ActiveRecord 来运行模型,然后有一个编译脚本,该脚本知道哪些文件适用于移动设备,哪些文件适用于 Web。然后,我们可以将所有代码放在一个存储库中,并使用编译器生成正确类型(移动或 Web)的版本。

Seperate out your business logic and model code from the view layer. Then use sencha touch and Extjs to create both a web and mobile (mobile web atleast) application. You can then reuse the model and business logic code and use the different frameworks to manage the view. When you have a mobile app running, use phone gap to turn it into a full-fledged app (assumming you need access to phone only systems (camera etc)).

We've done this with our own custom framework built on top of Ext and Sencha. We use ActiveRecord to run the models and then have a compile script that knows which files are for mobile and which are for web. We can then have all the code in the one repository and use the compiler to produce versions for the correct type (mobile or web).

娇女薄笑 2024-11-23 12:24:17

从移动应用程序开始绝对不是一个好主意,因为网络浏览器比智能手机更普遍。从 Web 应用程序开始,定制 UI,使其可以轻松地显示在智能手机和桌面浏览器上。如果这不是可行的途径,您可以拥有网站的常规版本和移动版本。一般来说,我认为编写专用移动客户端来浏览网站的开销大于回报,除非您想利用手机的硬件功能,如 GPS 或传感器(甚至您仍然可以从网络应用程序访问 GPS)使用 W3C 地理定位 API)。

It's definitely not a good idea to start with the mobile app, since web browsers are more ubiquitous than smart phones. Start with the web application and tailor the UI so that it can be easily displayed on smart phones as well as desktop browsers. If that's not a viable route, you could have a regular version and a mobile version of your website. In general, I think the overhead of writing a dedicated mobile client to browse your website is greater than the payoff unless you want to take advantage of the phones' hardware features like GPS or sensors (and even GPS you can still access from a web app using W3C geolocation api).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文