The problem of complete separation of front and rear ends of vue & laravel

currently, laravel has been used to do Wechat applications, and the front-end code is also in the laravel project, which needs to be changed from html+js to blade template.
the html+js developed at the front end must also be converted and incorporated into the laravel project, which is troublesome.
what should I do if I want to achieve complete separation?
currently, we are going to install nginx+php+laravel,laravel project on the back-end server to implement business logic and call Wechat interface, and develop restful-style interface, which is provided to the frontend to call and obtain data.
so, does the front end also use a server, such as using vue+webpack, to run on another server alone, and then the router of laravel in the back-end server requests front-end pages from the front-end server? Does the front-end server still need nginx?
in this way, the front-end service can be developed separately, and another group of people in the back-end can develop it separately, without merging the front-end code on the back-end service.

above, I would like to ask you for advice.

Mar.06,2021

can be packaged to the public directory, and the nginx agent accesses the index.html, normally and accesses the file agent that cannot be found for php processing.


the front end is separated from the back end, and the page is separated from the back end. The routing of the front end page is controlled by the front end itself and does not need to be deployed from the back end of the server. The front end and back end code can be deployed in one server.


1. The front end development is not done in the blade template? Complete front and rear separation, of course, is based on the current laravel, with vue;
2, I have not been in contact with the front-end program to put a separate server project, I should not be able to do so. no, no, no.


it's okay to run the same server. The backend domain name is named api.xxx.com, and the front-end domain name is named www.xxx.com. Two domain names resolve the same address. Nginx will specify the host address of your domain name to different server, to access different directories. You only need to configure another server.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b32965-2b372.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b32965-2b372.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?