PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, July 15, 2022

[FIXED] How to host React.js Web Application on IIS or Window Server?

 July 15, 2022     hosting, reactjs, web-deployment     No comments   

Issue

I'm new to deploy React.js Web Application on Window Server. How can I host react.js web application on IIS?

Your advise is most welcomed. Thanks


Solution

No sure how you are compiling your code, but in general there should be a public folder somewhere in your solution, so the static files are there, just set this public folder on IIS to serve static file on a route you like.

Of course, this solves how to serve the html/css and react complied scripts, but you need to go a little further to have access to the api used by react on browser side, and it depends on what framework you've used for that.



Answered By - Quirinux
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing