Prerequisites
- Windows
- IIS 7.x with IIS Management Tools
- URL rewrite module for IIS if you don't have it already installed
- Latest node.exe Windows build from nodejs.org saved to %systemdrive%\node directory
- One of the following:
- Visual Studio C++ Express (if you intend to build iisnode in addition to using it)
- Visual C++ 2010 Redistributable Package for x86 or x64 (if you only intend to use iisnode)
- IIS 7 header files from Windows SDK (building iisnode only)
- your favorite text editor; WebMatrix is recommended (developing node.js apps on Windows only)
Building
For 32 bit Windows:
msbuild /p:Platform=Win32 src\iisnode\iisnode.sln
For 64 bit Windows:
msbuild /p:Platform=x64 src\iisnode\iisnode.sln
Installing for IIS 7.x after build
build\debug\%PROCESSOR_ARCHITECTURE%\install.bat
Installing for IIS 7.x from a download
- Download and unzip desired build for 32 or 64 bit Windows
- call install.bat
Installing for IIS Express/WebMatrix
Samples
http://localhost/node
Running tests
Install for IIS 7.x (see previous sections), then:
test\functional\test.bat
Howtos
the basics
using with express framework
using with URL rewrite module
using with WebMatrix and IIS Express
using with mongodb
Resources & documentation
https://github.com/tjanczuk/iisnode/wiki http://tomasz.janczuk.org