If you haven’t run the yarn install in the view folder, please do so first.
To start the testing Nodejs server.
A browser tab will be automatically started, and any code change in the React SPA will be hot loaded by the browser.
The SPA is connecting to the proxy on port 3000 of the localhost, and all API access is proxied to the https://lightapi.net with the path prefix defined in the above setupProxy.js
You can now click the OAuth 2 menu on the browser to access the light-oauth2 view. When you change the view source code, it will be reflected immediately on the browser.
In the next step, we are going to build the view SPA and deploy it to the light-router local instance. When the light-router serves the view, there is no need to have any proxy and the performance of the SPA application will be much better due to the CORS is skipped.