gin-vue-admin
Windos development environment, publish to the windos platform, do not change other configurations, do not use nginx, very simple, just 3 steps
1. Modify gin-vue-admin\server\core\server.go, add Router.Static("/fe", "./resource/dist") fe represents the front-end access address, if the back-end address is http: //127.0.0.1:8888 , then the front end is http://127.0.0.1:8888 /fe
2. Modify gin-vue-admin\web\.env.production, change to VUE_APP_BASE_API ='/'
3. cmd, switch to the gin-vue-admin\web directory in the command line, npm run build, the dist folder will be generated in this directory
4. cmd, switch to the gin-vue-admin\server directory in the command line, go build, will generate gin-vue-admin.exe
5. In the server directory, copy out the folder
6. Put the generated dist under the resource. Note that rbac_model.conf must be kept and cannot be deleted, otherwise ApI will not be accessible
7. Run gin-vue-admin.exe, visit http://127.0.0.1:8888/fe/