-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can this react app be deployed as a web app on to a windows server so that users can access the app outside of the server ? #139
Comments
I am trying to build a react app outside of SharePoint but the app should fetch the SharePoint Search API. I could not find a way to establish the connection from react app to SharePoint except yours. I have two questions:
|
Hi @noah09dvlpr,
|
Thank you so much for quick response. This is a development project we are working on so we feel that it is okay to move forward with your app. |
Generally, Node.js servers are not deployed to IIS. IIS doesn't support Node.js OOTB, there are some experimental extensions but IIS is not the way running Node anyways. You can proxy with ARR in IIS or use another reverse proxy which is more natural for modern era. For dev scenarios, you always run sp-rest-proxy only locally next to Local Dev Server or inside it https://github.com/koltyakov/sp-rest-proxy#webpack-dev-server |
Not an error, warning. One of the linter plugins has a restriction for TypeScript version. You don't need building sp-rest-proxy from sources. It's an installable library.
And it should not contain any html.
A Node.js can't be hosted with IIS. It's server side JavaScript, IIS can't run Node.js, it can proxy to a server with ARR. There are such experiments like iisnode but they don't have a lot sense. I'd recommend not to waste time with IIS. Industry standards are a normal reverse proxy, e.g. Nginx/HAProxy/Traefik/etc., to and Node.js process(es). And once again, hosting sp-rest-proxy for all devs and meaningless and not a good idea. It should be just integrated to your local dev server pipeline and act as a dev dependency within SPA. Please check this article describing the process in details. |
No description provided.
The text was updated successfully, but these errors were encountered: