Node.js Web 应用程序示例/教程 [英] Node.js Web Application examples/tutorials

查看:50
本文介绍了Node.js Web 应用程序示例/教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我看完了 Douglas Crockford 关于 Javascript 的精彩系列,在最后一集(到目前为止),loopage 他阐述了为什么 Node.js 是服务器端代码的近乎完美的解决方案.

So I finished watching Douglas Crockford's excellent series on Javascript, and in the final episode (so far), loopage he lays out why Node.js is a near perfect solution for server side code.

他谈到保持状态,而不是在数据库中,而是在 Node.js 中运行的闭包中,他还指出模板系统(如 JSP、PHP 和 ASP)对于更复杂的 Web 应用程序和该节点来说是一个糟糕的抽象.js 提供了一个解决方案.

He talks about keeping state, not in the database, but in closures running in Node.js, he also states that templating systems (like JSP, PHP, and ASP) are a poor abstraction for more complicated Web Applications and that node.js provides a solution to this.

我已经准备好购买了,但我找不到任何使用这种模式的 Web 应用程序示例,也找不到任何关于如何进行此操作的书籍或教程.我不是在谈论简单的应用程序,但会使用克罗克福德在他的演讲中谈到的模式.任何人都知道我在哪里可以找到一些用 Node.js 编写的 Web 应用程序的教程/示例(是的,我知道 GeddyExpressJs,但它们似乎没有遵循 Crockford 所说的完全不同的模式,更像是在 Node.js 上获得 Railsy 体验).

And I am ready to buy in, but I can't find any examples of Web Applications using this pattern, or any books or tutorials about how to go about doing this. I am not talking about a simple application, but something that would use the patterns that Crockford spoke of in his talk. Anyone know where I can find some tutorials/examples of Web Applications written in Node.js (and yes I know about Geddy and ExpressJs, but they don't seem to follow the radically different patterns that Crockford was speaking of, and were more like getting a Railsy experience on Node.js).

[未来 3 年的笔记:看起来像 ExpressGeddyKraken 等都是从 Ruby/PHP/Java 重新实现 Rails/Symfony/Spring 框架.而像 HoodieMeteor 是对全新范式的尝试.KOA 看起来很有趣,但离可用还有一段距离,但看起来它是建立在 javascript 的优势之上的过去 MVC 应用程序的历史.3 年过去了,对于 Nodejs 来说仍然是激动人心的时刻,即使它不再是新的热点.至少现在有很多实际使用 Node 的例子......

[Note from 3 years in the future: It seems like Express, Geddy, Sails, Kraken et all are re-implementations of the Rails/Symfony/Spring frameworks from Ruby/PHP/Java. Whereas things like Hoodie and Meteor are attempts at a whole new paradigm. KOA looks interesting, but is a ways away from being usable, but looks like it is building on the strengths of javascript with the history of MVC applications of the past. 3 years on and it is still exciting times for Nodejs, even if it is no longer the new hotness. At least there are a lot of real world examples of Node in use now...

推荐答案

我建议您查看最近发布的各种教程.我目前最喜欢的是:

I would suggest you check out the various tutorials that are coming out lately. My current fav is:

http://nodetuts.com/

希望这会有所帮助.

这篇关于Node.js Web 应用程序示例/教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆