'How to host both back-end (Nodejs) and front-end (Angular) on de same domain name?

every body. I'm working on a project that have two sides: back-end and front-end.

I have a domain name, and i want to use that single domain name to host both back-end and front-end.

I don't know how to do it.

Should i create a subdomain to host the back-end ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source