Javascript node.js 示例
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5236547/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
node.js Examples
提问by Mirgorod
Are there any useful examples of node.js (such as a guestbook or chat room)?
是否有任何有用的 node.js 示例(例如留言簿或聊天室)?
采纳答案by Travis
Read about what I did to make it here: http://www.travisglines.com/web-coding/lets-make-a-twitter-clone-in-node-js
阅读我在这里所做的工作:http: //www.travisglines.com/web-coding/lets-make-a-twitter-clone-in-node-js
Check out the source code here: https://github.com/tglines/nodrr
在此处查看源代码:https: //github.com/tglines/nodrr
回答by rbginge
There are some useful introductory videos on node at the Node.js Camp website that helped me get my head round things. Particularly the Introduction to Node video by Ryan Dahl (creator of Node.js) where he codes a basic chat server on the spot. Also the videos about Tim Caswell's game client are pretty impressive.
Node.js Camp 网站上有一些关于 node 的有用介绍视频,它们帮助我了解了一些事情。特别是 Ryan Dahl(Node.js 的创建者)的 Node.js 简介视频,他现场编写了一个基本的聊天服务器。此外,有关 Tim Caswell 游戏客户端的视频也令人印象深刻。
http://camp.nodejs.org/videos/
http://camp.nodejs.org/videos/
You may also want to look at the socket.io example on Tim Caswell's 'How To Node' blog if you're interested in a simple chat server.
如果您对简单的聊天服务器感兴趣,您可能还想查看 Tim Caswell 的“How To Node”博客上的 socket.io 示例。
You didn't say how proficient you were in Javascript but Tim has written a couple of interesting articles that explains some Javascript fundamentals using object graphs. Helps explain some novel concepts such as the prototype chain and closures.
你没有说你在 Javascript 方面有多精通,但 Tim 写了几篇有趣的文章,解释了一些使用对象图的 Javascript 基础知识。帮助解释一些新概念,例如原型链和闭包。
回答by Alan Haggai Alavi
Here is a chatalong with its source code.
回答by invalidsyntax
Here is a list of a bunch of applications created using node.js that already exist. Perhaps this would be a nice place to start --
这是使用已经存在的 node.js 创建的一堆应用程序的列表。也许这是一个不错的起点——
https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node
https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node
回答by dhofstet
DailyJS has a tutorial series about building an app with node.js: http://dailyjs.com/tags.html#lmawa
DailyJS 有一个关于使用 node.js 构建应用程序的教程系列:http://dailyjs.com/tags.html#lmawa
回答by Bas Dirks
Pedro Teixeirawalks his viewers through creating several parts of a web application at Node Tuts. The code to go with his screencasts can be found on his Github page. They mostly deal with Express and Mongoose, but there are plenty of other subjects and code samples there.
Pedro Teixeira引导他的观众在Node Tuts 上创建 Web 应用程序的几个部分。与他的截屏视频一起使用的代码可以在他的Github 页面上找到。他们主要处理 Express 和 Mongoose,但那里还有很多其他主题和代码示例。