Debugging a SPA with a Spring Server-Side
Single Page Application (SPA) in one of the major frameworks:
Spring has automatic reload on update, and a built-in Tomcat, but any update will take time to build, and a refresh of the browser.
The front end has to fetch data from the front-end and to update data at the backend.
A two-pronged approach:
- Fetch the SPA code from the build tool (live server of the build tool)
- Fetch/update data from/to server-side
Configure the two pronged approach by configuration the API URL in the SPA according to the environment.