Search code examples
node.jsiisdeploymentwebapinodejs-server

Can I deploy NodeJS Web API to Microsoft IIS?


I have a problem, because I created NODEJS API and I have to deploy it on Microsoft IIS. I have never done this before. Is it possible to do? If yes, I will be very grateful if someone describes how to do this.


Solution

  • If you want to host node.js application, you should firstly install the node.exe and the a build of iisnode.

    https://nodejs.org/en/#download

    https://github.com/tjanczuk/iisnode

    After installed the IIS nodes, you could set up samples, from the administrative command prompt call %programfiles%\iisnode\setupsamples.bat.

    More details, you could refer to below article:

    https://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx