0
I am creating a Single Page Application site, for this, I created a Restful API on Node.js that does all the actions in the database, login, sending emails and etc. I thought of creating a "public" folder in my project and put my front end there. But I think at some point I’m going to have a conflict between the Node.js and my front-end routes. I thought about leaving the API running on one port and the front end running on another port. As if they were separate projects.
What is the most used form in the organization of projects that use Single Page Application, restful API and etc?
I understand that this subject would probably be better discussed on chat, because there is no ideal solution that meets anyone. It depends a lot on the opinion and experience of each developer, and mainly on the individual proposal of each project. It is a valid question, maybe the answers cannot be so valid, because there is a great chance that the question attract "personal testimonials" that could be mistaken as technical answers, which is not so suitable for the format of questions and objective answers of the site.
– Bacco