55

Are there any useful examples of node.js (such as a guestbook or chat room)?

Dave Forgac
  • 2,736
  • 6
  • 35
  • 51
Mirgorod
  • 26,593
  • 17
  • 47
  • 62
  • 13
    +1 The question is a solid one, just worded a bit poorly. There isn't as much documentation on `node.js` that's easy to use for beginners as there is for javascript in general. – Raynos Mar 08 '11 at 18:36
  • 4
    I agree with Raynos. I am new to node.js and I am trying to learn by finding a repository of examples; which is hard to come by. There are a lot of folks on stackoverflow like Anna (who silly closed this question) with a lot of points but very little ... – Phil Jan 07 '12 at 17:00
  • @chrisjlee It looks like you posted the same url as this page. Which page from Programmers.SE were you trying to post here? – Anderson Green Sep 02 '12 at 19:17
  • Sorry this other question... http://stackoverflow.com/questions/2974083/could-someone-give-me-an-example-of-node-js-application?lq=1 – chrisjlee Sep 04 '12 at 12:41
  • I agree that this shouldn't have been closed. I came across this question because I was asking the same. – Jeight Oct 09 '13 at 20:28

6 Answers6

28

Read about what I did to make it here: 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

Pedro Lobito
  • 75,541
  • 25
  • 200
  • 222
Travis
  • 7,021
  • 11
  • 37
  • 52
8

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.

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.

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.

http://howtonode.org

rbginge
  • 896
  • 1
  • 6
  • 13
  • 1
    The camp link appears to be broken. I *think* this moight be the same link (using the wayback machine) http://web.archive.org/web/20110214161106/http://camp.nodejs.org/videos/ – onaclov2000 Dec 14 '12 at 15:56
7

Here is a chat along with its source code.

Alan Haggai Alavi
  • 67,398
  • 19
  • 96
  • 124
6

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 --

https://github.com/joyent/node/wiki/Projects,-Applications,-and-Companies-Using-Node

invalidsyntax
  • 640
  • 1
  • 5
  • 14
3

DailyJS has a tutorial series about building an app with node.js: http://dailyjs.com/tags.html#lmawa

dhofstet
  • 9,894
  • 1
  • 34
  • 37
3

Pedro Teixeira walks 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.

Bas Dirks
  • 401
  • 2
  • 7