Linux世界中有哪些可用的MVC Web框架?

时间:2021-09-19 17:02:28

I've never done any web development on Linux, and I'm about to start a project that requires it. I love ASP.Net MVC, so what are my availble options on Linux that kind of follow the same principles?

我从未在Linux上进行任何Web开发,我即将开始一个需要它的项目。我喜欢ASP.Net MVC,那么我在Linux上有哪些可用的选项遵循相同的原则?

The project is a very simple "ecommerce" site (two or three products). There may be other sites to come though that are more complicated.

该项目是一个非常简单的“电子商务”网站(两三个产品)。可能还有其他网站会更复杂。

Ruby on Rails comes to mind. Is there something else? Ideas? Thoughts? Pros? Cons?

想想Ruby on Rails。还有别的吗?想法?思考?优点?缺点?

EDIT: Just personal preference, no PHP, Java, or Mono for this project.

编辑:这个项目只是个人偏好,没有PHP,Java或Mono。

8 个解决方案

#1


2  

Ruby on Rails and Merb for Ruby Django for Python CakePHP, CodeIgnitor and others for PHP.

Ruby on Rails和Merb for Ruby Django for Python CakePHP,CodeIgnitor和其他PHP。

There are many, many options, and no way to narrow it down without knowing more about your experience, preferences, and goals. The first thing you need to know to narrow down the list is what languages are acceptable. I don't know Python and hate PHP, so I tend toward Rails and Merb. Rails in particular I can heartily recommend; it's a very well-put-together framework.

有许多选项,如果不了解您的经验,偏好和目标,就无法缩小范围。要缩小列表范围,首先需要了解的是可接受的语言。我不懂Python而且讨厌PHP,所以我倾向于使用Rails和Merb。特别是Rails我可以衷心地推荐;这是一个非常好的组合框架。

Unfortunately, I have not used Microsoft's framework, so I can't provide any insight on which other frameworks may be similar to it.

不幸的是,我没有使用过Microsoft的框架,所以我无法提供任何有关其他框架可能与之类似的信息。

Finally, it's worth noting that these are not exclusively Linux frameworks. Practically speaking, they usually run on some kind of Unix (which may also be BSD, Solaris, or others), but many of them will run just fine on Windows as well.

最后,值得注意的是,这些并不仅仅是Linux框架。实际上,它们通常运行在某种Unix(也可能是BSD,Solaris或其他)上,但是其中许多也可以在Windows上运行得很好。

#2


2  

I've used Django, a Python MVC framework, and it's nice. Lots of 'ecosystem' around it as well. I've not used Rails, so I can't compare the two, but I like Django a lot.

我使用了Django,一个Python MVC框架,它很不错。周围也有很多“生态系统”。我没有使用过Rails,所以我无法比较两者,但我非常喜欢Django。

#3


1  

If you love and know asp.net mvc, why not use mono to run it? If you're making a very simple site, I find it hard to justify the cost of learning a new stack of something when the stack you know works.

如果您喜欢并了解asp.net mvc,为什么不使用mono来运行它呢?如果你正在制作一个非常简单的网站,我发现当你知道的堆栈工作时,很难证明学习一堆新东西的成本。

#4


1  

Since ASP.NET MVC is essentially an attempt at duplicating two thirds of Ruby on Rails, why not try that?

由于ASP.NET MVC本质上是尝试复制Ruby on Rails的三分之二,为什么不试试呢?

Apart from everything else, the ASP MVC framework is pretty crippled in that it doesn't actually have any support for the model.

除了其他一切,ASP MVC框架相当残缺,因为它实际上并没有对该模型的任何支持。

#5


1  

I'd fully recommend checking out Rails, one thing you might want to do if you're coming from a MS background only is get an Ubuntu VM setup. I suppose you technically can develop Rails apps in Windows but I don't think it'd be worth the hassle.

我完全建议检查Rails,如果你来自MS背景,你可能想要做的一件事就是获得Ubuntu VM设置。我认为你在技术上可以在Windows中开发Rails应用程序,但我认为这不值得麻烦。

Getting setup takes a few steps, but if you do decide to go with Ubuntu this will help.

获取安装程序需要几个步骤,但如果您决定使用Ubuntu,这将有所帮助。

#6


0  

If you love asp.net MVC, why not use it ;)? You can check those two discussions (I suggest reading first answers, not necessary the questions themselves): [1] [2] . I can't say I've tried that myself (although, I've used asp.net on mono just for tests and it worked well.

如果你喜欢asp.net MVC,为什么不使用它;)?你可以检查这两个讨论(我建议先阅读答案,而不是问题本身):[1] [2]。我不能说我自己尝试过(虽然我在单声道上使用asp.net只是为了测试而且效果很好。

#7


0  

Not to forget the Zend Framework which is actively developed.

不要忘记积极开发的Zend框架。

#8


0  

For PHP try http://codeigniter.com For Java try: http://www.stripesframework.org/display/stripes/Home

对于PHP,请尝试http://codeigniter.com对于Java,请尝试:http://www.stripesframework.org/display/stripes/Home

-Dave

#1


2  

Ruby on Rails and Merb for Ruby Django for Python CakePHP, CodeIgnitor and others for PHP.

Ruby on Rails和Merb for Ruby Django for Python CakePHP,CodeIgnitor和其他PHP。

There are many, many options, and no way to narrow it down without knowing more about your experience, preferences, and goals. The first thing you need to know to narrow down the list is what languages are acceptable. I don't know Python and hate PHP, so I tend toward Rails and Merb. Rails in particular I can heartily recommend; it's a very well-put-together framework.

有许多选项,如果不了解您的经验,偏好和目标,就无法缩小范围。要缩小列表范围,首先需要了解的是可接受的语言。我不懂Python而且讨厌PHP,所以我倾向于使用Rails和Merb。特别是Rails我可以衷心地推荐;这是一个非常好的组合框架。

Unfortunately, I have not used Microsoft's framework, so I can't provide any insight on which other frameworks may be similar to it.

不幸的是,我没有使用过Microsoft的框架,所以我无法提供任何有关其他框架可能与之类似的信息。

Finally, it's worth noting that these are not exclusively Linux frameworks. Practically speaking, they usually run on some kind of Unix (which may also be BSD, Solaris, or others), but many of them will run just fine on Windows as well.

最后,值得注意的是,这些并不仅仅是Linux框架。实际上,它们通常运行在某种Unix(也可能是BSD,Solaris或其他)上,但是其中许多也可以在Windows上运行得很好。

#2


2  

I've used Django, a Python MVC framework, and it's nice. Lots of 'ecosystem' around it as well. I've not used Rails, so I can't compare the two, but I like Django a lot.

我使用了Django,一个Python MVC框架,它很不错。周围也有很多“生态系统”。我没有使用过Rails,所以我无法比较两者,但我非常喜欢Django。

#3


1  

If you love and know asp.net mvc, why not use mono to run it? If you're making a very simple site, I find it hard to justify the cost of learning a new stack of something when the stack you know works.

如果您喜欢并了解asp.net mvc,为什么不使用mono来运行它呢?如果你正在制作一个非常简单的网站,我发现当你知道的堆栈工作时,很难证明学习一堆新东西的成本。

#4


1  

Since ASP.NET MVC is essentially an attempt at duplicating two thirds of Ruby on Rails, why not try that?

由于ASP.NET MVC本质上是尝试复制Ruby on Rails的三分之二,为什么不试试呢?

Apart from everything else, the ASP MVC framework is pretty crippled in that it doesn't actually have any support for the model.

除了其他一切,ASP MVC框架相当残缺,因为它实际上并没有对该模型的任何支持。

#5


1  

I'd fully recommend checking out Rails, one thing you might want to do if you're coming from a MS background only is get an Ubuntu VM setup. I suppose you technically can develop Rails apps in Windows but I don't think it'd be worth the hassle.

我完全建议检查Rails,如果你来自MS背景,你可能想要做的一件事就是获得Ubuntu VM设置。我认为你在技术上可以在Windows中开发Rails应用程序,但我认为这不值得麻烦。

Getting setup takes a few steps, but if you do decide to go with Ubuntu this will help.

获取安装程序需要几个步骤,但如果您决定使用Ubuntu,这将有所帮助。

#6


0  

If you love asp.net MVC, why not use it ;)? You can check those two discussions (I suggest reading first answers, not necessary the questions themselves): [1] [2] . I can't say I've tried that myself (although, I've used asp.net on mono just for tests and it worked well.

如果你喜欢asp.net MVC,为什么不使用它;)?你可以检查这两个讨论(我建议先阅读答案,而不是问题本身):[1] [2]。我不能说我自己尝试过(虽然我在单声道上使用asp.net只是为了测试而且效果很好。

#7


0  

Not to forget the Zend Framework which is actively developed.

不要忘记积极开发的Zend框架。

#8


0  

For PHP try http://codeigniter.com For Java try: http://www.stripesframework.org/display/stripes/Home

对于PHP,请尝试http://codeigniter.com对于Java,请尝试:http://www.stripesframework.org/display/stripes/Home

-Dave