I am a PHP developer and also I have developed Angular 6 apps using Node.js backend. But, currently I am working on a project which should run an Angular 6 app with a PHP 7 back-end. The reason is that, the API was written in PHP. I wish to develop my Angular app in WAMP server default directory.
wamp64/www/my_project
So my questions are,
- Will the Angular 6 app run? Because it needs another server and normally it is
http://localhost:4200/.
- Would there any server (localhost) collisions?
If it is, what should I do?
Also, can I run
<?php session_start();?>
on the beginning ofindex.html(or .php)
file?
You can write Angular2 app just using Angular2 packages without using node or mamp or xampp and host that app.
If you have written any thing in Angular2 and node.js combination then you can host it on free services like Heroku for testing purpose.
and build app using:
copy dist folder and paste it in my xampp htdocs folder and access the site using:
output
App works