Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Make reactJS to run on IIS

I am working on a application where I will create Web API in .net and client application using ReactJS. WebAPI and client application both needs to be hosted on IIS. I am trying to host Reactjs examples on IIS but not successful.

I do not want to use reactJS.net as I will have to create a mvc application then.

Has anybody tried hosting on IIS 8.0. is there anything specific we need to do?

like image 228
user976508 Avatar asked Dec 01 '25 18:12

user976508


1 Answers

You have to do 3 simple steps:

  1. Take React js start kit
  2. npm run build - it will generate the build
  3. Open IIS create website and give path to you build folder
  4. Then run it
like image 68
Karangiri goswami Avatar answered Dec 04 '25 10:12

Karangiri goswami



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!