The current repo belongs to Paused status, and some functions are restricted. For details, please refer to the description of repo status
1 Star 0 Fork 230

两条腿的兔子 / coffeewx-admin-api
Paused

forked from Kevin / coffeewx-admin-api
Paused
 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

简介

CoffeeWx是一款基于VUE、Spring Boot的前后端分离的微信公众号管理系统、支持多公众号。

技术

  • 开发语言:Java
  • 数据库:Mysql
  • 前端框架:Vue + Axios
  • 后端框架:Spring Boot
  • 缓存:Redis
  • 工具类集合:Hutool
  • 和微信端对接工具:weixin-java-tools
  • 内网穿透工具:Natapp

项目截图

输入图片说明

项目演示地址

   演示账号:test/test123456
   管理员账号:admin/admin123456【自觉点,莫要乱操作】

公众号配置流程

公众号url配置表达式

http://{域名}/api/wx/portal/{appid}
例子:http://coffee-ease.natapp1.cc/api/wx/portal/wxff7bf2c34c65e260

前后端项目地址

coffeewx-web-ui 打包部署


1、修改打包对应环境的配置文件
例如:打包prod环境
修改/coffeewx-web-ui/config/prod中的BASE_API变量,修改为对应后台地址
2、打包部署
$ npm install
$ npm run dev
$ npm run build:prod

coffeewx-admin-api 打包部署

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
    

ngnix配置参考

    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;
    }

SQL脚本

/src/test/resources/coffeewx-admin.sql

CodeGenerator代码自动生成工具

注意事项:
1、执行完main方法,生成代码,genCodeByCustomModelName("sys_user","User")
2、修改UserMapper.java,添加findList方法,可参考其他模块。
3、修改UserMapper.xml,添加findList SQL语句,可参考其他模块。
4、运行项目

常见问题

1、项目中使用了lombok插件,自行百度。
2、最好用IDEA开发工具。
3、项目打包之后,可能由于不同环境打包导致配置文件出问题,无法启动,请先删除classes、target目录,重新运行项目。

参考资料

Empty file

About

CoffeeWx是一款基于VUE、Spring Boot的前后端分离的微信公众号管理系统、支持多公众号。QQ交流群:790782152 expand collapse
Java
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zhang_m01/coffeewx-admin-api.git
git@gitee.com:zhang_m01/coffeewx-admin-api.git
zhang_m01
coffeewx-admin-api
coffeewx-admin-api
master

Search

344bd9b3 5694891 D2dac590 5694891