Thursday, September 15, 2011

Getting started with node.js on Windows

Here are a few quick steps to set up a node.js development environment on Windows:

  1. Install WebMatrix: http://www.microsoft.com/web/webmatrix/
  2. Install node.js: https://github.com/tjanczuk/node/downloads
  3. Install iisnode for IIS Express (choose x86 even on 64 bit systems): https://github.com/tjanczuk/iisnode/downloads 
  4. Install Steve’s node.js templates for WebMatrix: https://github.com/SteveSanderson/Node.js-Site-Templates-for-WebMatrix/downloads 
  5. Open WebMatrix, choose “Site from folder”, enter %localappdata%\iisnode\www, start the site, and play with the iisnode samples, or
  6. Use node.js templates to get started quickly with an Express application or a skeleton Hello World

For more information and howtos check out my recent posts and visit http://github.com/tjanczuk/iisnode.

I hope you like it and I am looking for your comments and suggestions. Please report any issues at https://github.com/tjanczuk/iisnode/issues.

2 comments:

  1. So I noticed you are packaging up an msi for node.exe recently. Have you thought about using the chocolatey package instead (http://chocolatey.org/packages/nodejs)?

    cinst nodejs

    It "installs" to a different directory, but it puts that directory on the path.

    The chocolatey "installer" for nodejs - https://github.com/ferventcoder/nugetpackages/blob/master/nodejs/tools/chocolateyInstall.ps1

    It could use your MSI instead. To do that would make the install require administrative rights though - it's a tradeoff.

    Hit me up on twitter - ferventcoder (or at gmail if you don't have twitter) if you want to discuss further. :D

    ReplyDelete
  2. Thank you soooo much for all of this! I've been banging my head on my desk trying to get Node to work on my computer. Will follow it closely.

    ReplyDelete

My Photo
My name is Tomasz Janczuk. I am currently working on my own venture - Mobile Chapters (http://mobilechapters.com). Formerly at Microsoft (12 years), focusing on node.js, JavaScript, Windows Azure, and .NET Framework.