An Angular project once "generated" will consist of resources that do not need to be executed by a web server, as in the case of PHP files. That is to say that a project created with Angular will consist of html, css, images, javascript ... this is downloaded in the client's browser and is where it is executed.
Once an Angular project has been generated, you should be able to open it locally without the need to start a web server or node, simply by accessing the root of the generated project and opening the file "index.html". It is this file along with the files that accompany it what you transfer to the server.
How to test the web server?
Web servers can have different configurations, but there is always a directory where you use your web application, usually "htdocs" where you must place the file that allows access to your application, normally
index.html
.
You can test your home directory by uploading an "index.html" with a test content, for example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
Prueba
</body>
</html>
This, if everything is correct, will show you in the browser the text "Test" when you access your domain.
How do we generate our Angular application?
Angular allows us to develop composite applications of static resources: HTML, CSS, JS, etc.
During development, we use node to serve the Angular application with the command:
ng open
To get the application so that we can, for example, deploy it on a server we will use:
ng build
The necessary files will be in the "dist" directory. The files contained in this directory are those that we upload to the root directory of our web server. Before this we can test if it works locally by opening the file "index.html" with the browser.
If the local test worked, upload the file "index.php" of the project that you generated with Angular, along with the rest of the content of the application, to the directory htdocs (or the one that corresponds) so that your application generated with Angular is available in your domain.