Last Updated: February 25, 2016
·
1.758K
· miensol

Combine Express.js and ASP.NET Web API

I am excited about the OWIN initiative it really can improve .NET web application development space. Just to test if its possible I've created a sample that demonstrate how to combine Express.js with Asp.Net Web Api. You can find the sample here
https://github.com/miensol/connect-webapi-samples

When you clone the repo all you need to do is:

msbuild .\Connect.WebApi.sln
node .\index.js

and now you're running Express.js and ASP.NET Web API in the same process thanks to excellent edge.js and slightly modified version of owin-connect.

Here are some screens, response from express.js:
expressjs response

response from ASP.NET Web API:
asp.net web api response

More possible usages here