Current location - Quotes Website - Signature design - How to separate front-end and back-end development with vue and php?
How to separate front-end and back-end development with vue and php?
You said that the front end and the back end are separate, and there is no need to nest vue in php code. The front-end and the back-end use pure interfaces to exchange data, find back-end colleagues to define restful interfaces, and make clear the returned data structure, then you can develop mock data on the front-end. As for how to build the environment, it depends on whether you are a novice or directly use vue-cli to basically meet your development needs. Remember that when packaging, npmrunbuild it, and the packaged folder is what the background needs. The front end doesn't understand the background at all. It's unimaginable. I advise you to have time to understand the basic concept of background. This solution is ok, simple and rude. Personally, I suggest going to Backing Network to watch teaching videos frequently.