I created an angularjs project using yeoman and used gruntserve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure gruntserve to store php programs? I created an angularjs project using yeoman and used grunt serve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure grunt serve to store php programs?
Reply content:
I created an angularjs project using yeoman and used grunt serve for preview debugging. However, php is not supported. I need to use PHP as a restful backend service. I created an api folder in the project root directory, how can I configure grunt serve to store php programs?
As you can see on Weibo, you can click here to find that the question is 8.13. In fact, in this development mode, I suggest separating the frontend and backend. After PHP starts running, the front-end project uses grunt-connect-proxy to proxy the API to the PHP application, so that there will be no impact on both sides.
It's okay if you keep running php. grunt only monitors the front-end stuff.