node.js Examples

Javascriptnode.js

Javascript Problem Overview


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

Javascript Solutions


Solution 1 - Javascript

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

Solution 2 - Javascript

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

Solution 3 - Javascript

Here is a chat along with its source code.

Solution 4 - Javascript

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

Solution 5 - Javascript

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

Solution 6 - Javascript

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMirgorodView Question on Stackoverflow
Solution 1 - JavascriptTravisView Answer on Stackoverflow
Solution 2 - JavascriptrbgingeView Answer on Stackoverflow
Solution 3 - JavascriptAlan Haggai AlaviView Answer on Stackoverflow
Solution 4 - JavascriptinvalidsyntaxView Answer on Stackoverflow
Solution 5 - JavascriptdhofstetView Answer on Stackoverflow
Solution 6 - JavascriptBas DirksView Answer on Stackoverflow