honey6611 / react-asp-jscript

A proof of concept for using React.js within the Classic ASP JScript engine
0 stars 0 forks source link

How run in localhost (Windows)? #1

Open DQ318 opened 4 years ago

DQ318 commented 4 years ago

Hello @honey6611 !

I am learning React to "modernize" my website developed in ASP Classic and I found your repo.

I would like some guidance on how to make it work because I wanted to study the code to try to apply it to mine and, for that, I downloaded your repo and couldn't reproduce it on my localhost.

How do I see it working?

Thank you for your attention.

honey6611 commented 4 years ago

Hi, You cannot directly convert existing ASP pages to into react.What you could do is start building front end with react and convert your asp pages into api endpoints which will be consumed by react front end. On Tuesday, April 28, 2020, 02:00:58 PM GMT+1, DQ318 notifications@github.com wrote:

Hello @honey6611 !

I am learning React to "modernize" my website developed in ASP Classic and I found your repo.

I would like some guidance on how to make it work because I wanted to study the code to try to apply it to mine and, for that, I downloaded your repo and couldn't reproduce it on my localhost.

How do I see it working?

Thank you for your attention.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

DQ318 commented 4 years ago

@honey6611 Hi!

Understand.

After installing NPM in the project folder and opening it in LOCALHOST through IIS, this appears in my browser:

A pure component {"api":"http://localhost/react-asp/api?sid=","data":{"bla":"plisch","path":"/"},"rootUrl":"http://localhost/react-asp/","session":"","version":"0.3.0"}
1) -> [
  "LOG:",
  "bla",
  {
    "blubb": "plisch"
  }
]
2) -> [
  "LOG:",
  "url:",
  "C:\\inetpub\\wwwroot\\react-asp\\package.json"
]

Is it correct or should something different appear? Thnks again!