'How to connect an Angular App with NodeJS

I'm currently learning Angular and I have a question. How are we supposed to use nodeJS as a backend for our project.

To launch a dev angular project, you need to ng serve and to launch a server nodes, you need to node app.js.

So what are we supposed to do first ? launch a nodeJS server and then ... what ?

or

ng serve the angular app and then... what ?

I'm sorry if my question sound stupid for some, but I'm really trying to understand how it works here.



Solution 1:[1]

Using angular with node js as backend is usually called MEAN stack.There is plenty of tutorials on youtube about MEAN stack. This link could be a good point for starting.

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 AmirHossein Rezaei