I am creating a Single Page Application, for this, I created a Restful API in Node.js that does all the actions in the database, login, sending emails and etc. I thought about creating a "public" folder in my project and put there my front end. But I think that some time I will have a conflict between the routes of Node.js and my front end. 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?