Web应用程序开发中的架构和逻辑

Web应用程序开发中的架构和逻辑

本文介绍了Web应用程序开发中的架构和逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Php开发的新手,但我非常擅长编程,尤其是服务器端。因此,我选择了一个陡峭的学习曲线。

我正在尝试在Php中开发一个webapp,用户可以在其中设计项目(比如茶碟或桌子)并选择颜色,形状和颜色等属性。然后系统必须根据所选属性调整图像的显示。

我需要帮助提供一般体系结构的建议,特别是使用最适合编写逻辑代码的语言。此外,如果可以提供我可以申请和学习的代码的帮助,我将非常感激。

我已经批判性地考虑了客户端与服务器端的页面渲染选项,但我不确定哪个更好,尽管我认为我倾向于客户端以利用JavaScript的潜力(因此应用程序可以从用户选择中获取所有数据并将其更少地传递给服务器。如果我为此使用服务器端,则意味着应用程序必须为用户选择的每个规范或格式化选项加载,这对用户来说可能是一种恼人的体验。

但是在这里,我面临着实现的挑战,并将其与MVC框架集成,最好是Angular JS。



我尝试过:



我考虑过Php,但似乎Php不适合这样的项目。

I am a rookie in Php development, but I am quite determined to get good at programming, especially server-side. Hence, I am opting for a steep learning curve.
I am trying to develop a webapp in Php where users can design items (say a saucer or a table) and choose properties like colour, shape, and then the system has to adapt the display of the image according to the selected properties.
I need help with advice to the general architecture especially with the language best for writing code for the logic. Also, if there can be assistance with codes which I can apply and learn from, I will deeply appreciate it.
I have critically considered client-side versus server-side options for the rendering of the pages, but I am not sure which will be better, although I think I am leaning towards client-side in order to harness the potentials of JavaScript (so the app can take all of the data from user selections and pass them to the server less often. If I were to use Server-side for this, it means the app would have to load for every specification or formatting option which the user selects, and this can be an irritating experience for the User).
But here, I am faced with the challenge of implementation, and integrating it with an MVC framework, preferably Angular JS.

What I have tried:

I have considered Php, but it seems Php is not adapted for such project.

推荐答案

I am trying to develop a webapp in Php where users can design items (say a saucer or a table) and choose properties like colour, shape, and then the system has to adapt the display of the image according to the selected properties.



这个客户方面将是HTML,JavaScript和一些CSS;以及您的应用程序商店如何可以是PHP,ASP.NET,Python或其他一些服务器端语言。这对于Web应用程序来说相对简单



实际选择将在HTML表单上进行,显示更改的要求将需要一些JavaScript来交换基于所选项目的图像。


The "customer" side of this is going to be HTML, JavaScript, and some CSS; and how your application stores is could be PHP, ASP.NET, Python or some other server side language. This is relatively easy when it comes to Web Applications

The actual selections are going to on an HTML form, and the requirement of displaying the changes will take some JavaScript to swap images based on the selected items.


这篇关于Web应用程序开发中的架构和逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 20:45