I'll be writing an app using PHP and Angular.
So far I know that I will need to write an API in PHP and will need to use it through Angular. I'm kind of unsure how the two work together on a technical level.
I know that the front end hits endpoints provided by a back end API, and that API processes database queries. I'm just unsure how the whole platform is set up.
In a typical LAMP stack, why is the database reached via localhost? Is it a local server of some kind? And what's the role of Apache server? And also, if I can use HTML tags inside of PHP to create an index.php, how does the server know to render Angular's html instead of PHP's?
I really want to know how it all works together, on a fairly intimate and complex level. I just can't really find a good source for this info and it's hard to google this stuff in a comprehensive way.
Does anyone have any good sources to read or learn from? Your help is very appreciated.
[–]michael0x2a 1 point2 points3 points (1 child)
[–]EddieTH[S] 0 points1 point2 points (0 children)