Fetch the repository succeeded.
This action will force synchronization from Kevin/coffeewx-admin-api, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
CoffeeWx是一款基于VUE、Spring Boot的前后端分离的微信公众号管理系统、支持多公众号。
演示账号:test/test123456
管理员账号:admin/admin123456【自觉点,莫要乱操作】
http://{域名}/api/wx/portal/{appid}
例子:http://coffee-ease.natapp1.cc/api/wx/portal/wxff7bf2c34c65e260
1、修改打包对应环境的配置文件
例如:打包prod环境
修改/coffeewx-web-ui/config/prod中的BASE_API变量,修改为对应后台地址
2、打包部署
$ npm install
$ npm run dev
$ npm run build:prod
1、修改/resources/application-prod.properties配置文件中对应配置,根据部署环境不同,切换配置文件
mvn clean package -DskipTests -Pprod
2、Copy项目中/bin目录下三个脚本,和打包之后的coffeewx-admin-api-1.0.jar文件放在同一个目录
3、脚本授权
chmod +x startup.sh
chmod +x stop.sh
chmod +x restart.sh
4、启动脚本
./startup.sh
location / {
root /usr/local/coffeewx/coffeewx-web-ui;
try_files $uri $uri/ @router;
index index.html index.htm;
}
location @router {
rewrite ^.*$ /index.html last;
}
location ^~ /api {
proxy_pass http://localhost:9999/api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
access_log /usr/local/nginx/logs/coffeewx-admin-access.log main;
error_log /usr/local/nginx/logs/coffeewx-admin-error.log warn;
}
/src/test/resources/coffeewx-admin.sql
注意事项:
1、执行完main方法,生成代码,genCodeByCustomModelName("sys_user","User")
2、修改UserMapper.java,添加findList方法,可参考其他模块。
3、修改UserMapper.xml,添加findList SQL语句,可参考其他模块。
4、运行项目
1、项目中使用了lombok插件,自行百度。
2、最好用IDEA开发工具。
3、项目打包之后,可能由于不同环境打包导致配置文件出问题,无法启动,请先删除classes、target目录,重新运行项目。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。