My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
NodeJsWindowsDownload  

Nodejs, Windows
Updated Oct 11, 2010 by demis.be...@gmail.com

Download Node.js for Windows

Taken from the nodejs.org website:

An example of a web server written in Node which responds with "Hello World" for every request.

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello, World! from node.js\n');
}).listen(8124, "127.0.0.1");
console.log('Server running at http://127.0.0.1:8124/');

To run the server, put the code into a file example.js and execute it with the node program:

% node example.js
Server running at http://127.0.0.1:8124/

Node's goal is to provide an easy way to build scalable network programs. In the "hello world" web server example above, many client connections can be handled concurrently.

Node.js is an event-based, async-io server framework allowing you to build efficient, scalable server programs using JavaScript.

Event-based, async-io architectures are faster and more memory efficient then traditional threaded servers, it is the architecture behind today's best-of-class software in Nginx, Redis, Memcached, etc.

Powered by Google's V8 JavaScript engine, it marks a fresh start in web server development where for the first time developers are able to build highly-efficient end-to-end software completely in JavaScript.

Windows Download

Download ultimate windows-dev pack: Redis v2.0.2, Node v0.2.3 and Expressjs v1.0.0rc3 (includes Cygwin):

Download latest release of Node v0.2.3 Stable only (includes Cygwin):

More Info

For more information about this exciting technology check out:

  • slides from JSConf 2009
  • slides from JSConf 2010
  • video from a talk at Yahoo in May 2010
  • video on Event Loops from JavaScript Guru Douglas Crockford

Useful Libraries

A lot of times your applications will need to have access to a data store, a very fast NoSQL data store that is popular to use with Node is Redis. A good tutorial to help you get started with Redis is:

Like node.js, Redis was built for unix operating systems but thanks to Cygwin it is also available to Download on Windows.

Useful links

Comment by dean%dea...@gtempaccount.com, Oct 11, 2010

Not sure how to add /etc/resolv.conf in this context. Any thoughts?

Comment by project member demis.be...@gmail.com, Oct 11, 2010

What do you need /etc/resolv.conf for? for npm? Yeah I haven't quite got npm working outside of Cygwin so all I'm doing is copying across a good starting lib bundle from my pre-configured Cygwin environment.

If you want to get npm working, it may be best that you setup node.js unser Cygwin using the above instructional links.


Sign in to add a comment
Powered by Google Project Hosting