Recently, I built a frontend application in React.js using NPM and utilized IntelliJ IDEA as my IDE for development. Additionally, I have set up a backend system using Spring Boot, which was also developed in IntelliJ IDEA separately.
My current goal is to run both projects on the same port locally so that I can easily use relative REST URL paths within the frontend application.
While I am aware that Spring Boot with Maven provides a solution for incorporating these projects, I am not satisfied with the implementation process. I prefer to treat the frontend and Java projects as distinct entities but still have them accessible through the same port. What would be the best approach to achieve this desired setup?