node.js 初学者教程?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4600792/
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 beginner tutorials?
提问by Trey Keown
I'm working on creating my first real node.js http server, and I'm sort of drowning in it. As a good teacher of mine always said, "I'll just shove you in the water for now, and then I'll show you how to swim." Fortunately, she wasn't a swimming instructor, but it's a good analogy nonetheless. I feel like I've jumped into node.js and I've only found a ping pong ball to help, that is to say, most of the tutorials I've read stop shortly after the "Hello World" example and I've mostly been trying to make sense of copied and pasted code (or they assume I have knowledge of lower level HTTP and webserver concepts that have been done for me as an Apache/PHP developer). I have experience in both client-side Javascript and PHP, but node seems to be a beast all of its own. I don't quite have the low-level knowledge that seems necessary for creating a node server, and connect, which seems to be a nice module for simplifying things, seems quite sparsely explained, even in the docs on its Git. Where could I find some tutorials to help me in this situation?
我正在创建我的第一个真正的 node.js http 服务器,我有点沉浸在其中。正如我的一位好老师常说的,“我先把你推到水里,然后我教你游泳。” 幸运的是,她不是游泳教练,但这仍然是一个很好的类比。我觉得我已经跳入 node.js 并且我只找到了一个乒乓球来帮助,也就是说,我读过的大部分教程在“Hello World”示例之后不久就停止了,我已经主要是试图理解复制和粘贴的代码(或者他们假设我了解作为 Apache/PHP 开发人员为我完成的较低级别的 HTTP 和网络服务器概念)。我在客户端 Javascript 和 PHP 方面都有经验,但 node 似乎完全是一头野兽。我不 t 完全具备创建节点服务器所需的低级知识,并且似乎是一个很好的简化模块的 connect 似乎很少解释,即使在其 Git 的文档中也是如此。在这种情况下,我在哪里可以找到一些教程来帮助我?
TL;DR - Are there any tutorials for node.js that go beyond "Hello World" but don't require much low-level knowledge?Or any tutorials that explain lower-level HTTP and webserver concepts that I would need to effectively create a node HTTP server?
TL;DR - 是否有任何超越“Hello World”但不需要太多低级知识的 node.js 教程?或者任何解释我需要有效创建节点 HTTP 服务器的较低级别 HTTP 和网络服务器概念的教程?
回答by RandomEtc
Over at DailyJS they've got a long-running Node tutorial called Let's Make a Web App. There are 8 parts so far:
在 DailyJS,他们有一个长期运行的 Node 教程,名为Let's Make a Web App。目前有8个部分:
- Part 1: Introduction
- Part 2: Installation and Skeleton App, source code commit: 4ea936b
- Part 3: RESTful Methods and Testing, source code commit: 39e66cb
- Part 4: Templates, Partials, Creating and Editing Documents, source code commit: f66fdb
- Part 5: Authentication, Sessions, Access Control Middleware, source code commit: 03fe9b
- Part 6: Interface Basics, source code commit: f2261c
- Part 7: Node Library Versions, Jade Tricks, Error Pages, source code commit: 929f5
- Part 8: Flash Messages, Helpers, Feedback Display, source code commit: df0b954
- 第 1 部分:简介
- 第 2 部分:安装和骨架应用程序,源代码提交:4ea936b
- 第 3 部分:RESTful 方法和测试,源代码提交:39e66cb
- 第 4 部分:模板、部分、创建和编辑文档,源代码提交:f66fdb
- 第 5 部分:身份验证、会话、访问控制中间件,源代码提交:03fe9b
- 第 6 部分:接口基础知识,源代码提交:f2261c
- 第 7 部分:节点库版本、Jade 技巧、错误页面、源代码提交:929f5
- 第 8 部分:Flash 消息、帮助程序、反馈显示,源代码提交:df0b954
It's a great blog for keeping up with Node news and tips as well as other general javascript topics.
这是一个很好的博客,可以了解 Node 新闻和技巧以及其他一般的 javascript 主题。
回答by Manuel Kie?ling
I know I'm a bit late to the party, but I still wanted to point you at my current work, The Node Beginner Book. It's exactly targeting at people like you:
我知道我参加聚会有点晚了,但我仍然想向您指出我目前的工作,节点初学者书。它正是针对像你这样的人:
回答by TK-421
See these tutorial sites:
请参阅这些教程站点:
回答by Baggz
Take a minute and have a look at these videos from recent Node.js Camp.
花点时间看看最近的 Node.js Camp 中的这些视频。
回答by Kevin Gorski
If you're still looking for some tutorials that build up from the core Node.js library, I've been writing a series of posts on that:
如果您仍在寻找一些从核心 Node.js 库构建的教程,我已经写了一系列关于此的文章:
There are more articles in the series than that, but RandomEtc is right that there isn't a great deal to cover when you're looking at the HTTP-related features specifically.
该系列中还有更多文章,但 RandomEtc 是对的,当您专门查看与 HTTP 相关的功能时,没有太多内容需要介绍。
回答by Dave Ward
Have a look at Express: http://expressjs.com/
看看快递:http: //expressjs.com/

