小型简单Web应用程序的框架/建议

[英]Framework/Suggestions for Small, simple web apps


I am looking create small simple applications that are fun social toys. They won't be complicated, usually a one-type CRUD type deal. For example,

我正在寻找创造有趣社交玩具的小型简单应用程序。它们不会复杂,通常是一种类型的CRUD类型。例如,

  1. Generate a random sentence (from source/algorithm)
  2. 生成随机句子(来自源/算法)

  3. Store this in a database
  4. 将其存储在数据库中

  5. Present this sentence to the user
  6. 将此句子呈现给用户

  7. Present a text box to allow them to enter their own sentence.
  8. 提供一个文本框,允许他们输入自己的句子。

  9. record sentence in the database with a relation to first sentance
  10. 在数据库中记录与第一个遗产有关的句子

then another part of this site would

然后这个网站的另一部分

  1. grab entries from database
  2. 从数据库中获取条目

  3. present them in interesting ways via relationships.
  4. 通过关系以有趣的方式呈现它们。

Ok so that's just an example, but most of these fit this bill. Now I'm a drupal developer and I could do them in drupal but:

好的,这只是一个例子,但大多数都适合这个法案。现在我是一个drupal开发人员,我可以在drupal中执行它们但是:

  • It ties them to my site or one main drupal base (They are conceptually and visually independent)
  • 它将它们连接到我的网站或一个主要的drupal基础(它们在概念上和视觉上独立)

  • One drupal installation per site is not realistic.
  • 每个站点一次drupal安装是不现实的。

  • I'd like to use something other than PHP, preferably a functional language.
  • 我想使用PHP以外的东西,最好是函数式语言。

So I'd be interested in hearing about frameworks that are good for

所以我有兴趣听听有益的框架

  • rapid prototyping of small, flexible and fast CRUD.
  • 快速原型制作小巧,灵活,快速的CRUD。

  • preferably a functional language or some other language with interesting and new features (for a php dev).
  • 优选地是功能语言或具有有趣和新功能的一些其他语言(对于php开发)。

  • provide enough structure to not reinvent the wheel, but enough control to reinvent if i need to.
  • 提供足够的结构,不重新发明轮子,但足够的控制,如果我需要重新发明。

Thanks! - not PHP

谢谢! - 不是PHP

4 个解决方案

#1


I've been using AppJet (http://appjet.com) for this lately. It's client-server, where both the client and the server are scripted with simple Javascript. The system is extremely simple but powerful enough to create some simple toys. It also supports a small space of persistent storage that is table-based (i.e. not MySQL, but straightforward enough).

我最近一直在使用AppJet(http://appjet.com)。它是客户端 - 服务器,客户端和服务器都使用简单的Javascript编写脚本。该系统非常简单,但足以创造一些简单的玩具。它还支持基于表的小空间持久存储(即不是MySQL,但足够简单)。

The only downsides to using it are (a) you're very much restricted to Javascript and what you can do in it and (b) your source code (client and server) can be viewed by other people.

使用它的唯一缺点是(a)你非常局限于Javascript以及你可以在其中做什么,以及(b)你的源代码(客户端和服务器)可以被其他人查看。

If you want to try getting into Python, Google App Engine (http://code.google.com/appengine/) is also convenient. It's more complicated, but you don't have to show people your source code.

如果您想尝试使用Python,Google App Engine(http://code.google.com/appengine/)也很方便。它更复杂,但您不必向人们展示您的源代码。

#2


This is a very generic answer but maybe you could try any of the following and which suits your taste:

这是一个非常通用的答案,但也许您可以尝试以下任何一种适合您的口味:

  • Ruby + Rails

    Ruby + Rails

  • Python + Django

    Python + Django

  • Erlang based web framework called
    Erlyweb

    基于Erlang的Web框架称为Erlyweb

  • web.py a simple python based
    framework.

    web.py是一个简单的基于python的框架。

If you are inclined towards using a functional language, it does not get better than Erlang but a WARNING-- it may take you time getting used to syntax. I think ROR and Django framework should be your top 2. I would go for Django and if you find Ruby "cute" you might look at ROR.

如果您倾向于使用函数式语言,它不会比Erlang更好,但是警告 - 它可能需要您花时间习惯语法。我认为ROR和Django框架应该是你的前2名。我会选择Django,如果你发现Ruby“可爱”,你可能会看看ROR。

#3


Rails.

If you want functional you could play with Erlyweb...

如果你想要功能,你可以玩Erlyweb ......

#4


Django/Python should be worth a look. Coming from php I found much it more interesting and productive to work with and it has a lot of really nice features.

Django / Python应该值得一看。来自php我发现它更有趣,更有效率,它有很多非常好的功能。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2009/05/15/70049d4418acefbd6fbc7744f436e4b0.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号