Reputation: 41
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,
http://localhost:4200/.
If it is, what should I do?
Also, can I run <?php session_start();?>
on the beginning of index.html(or .php)
file?
Upvotes: 4
Views: 6646
Reputation: 4433
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:
ng build --prod
copy dist folder and paste it in my xampp htdocs folder and access the site using:
localhost:8080/dist/
output
App works
Upvotes: 3