Skip to content
View hyaocuk3ofib's full-sized avatar
  • Beijing
  • reea.net

Block or report hyaocuk3ofib

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
hyaocuk3ofib/README.md

简介

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

技术

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

项目演示地址

前后端项目地址

公众号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目录,重新运行项目。

参考资料

Popular repositories Loading

  1. soyongkim soyongkim Public

    C

  2. LegendOfTheFoxo LegendOfTheFoxo Public

    Java

  3. JonasonWu JonasonWu Public

    Objective-C

  4. hyaocuk3ofib hyaocuk3ofib Public

    Java

  5. Compendium-of-Materia-Medica Compendium-of-Materia-Medica Public

    Forked from admin360bug/Compendium-of-Materia-Medica

    本草纲目V1.4版本

  6. worktool worktool Public

    Forked from gallonyin/worktool

    【企业微信】企业微信机器人 聊天机器人、自动加好友、自动拉群、自动群发机器人 免Root零封号

    Kotlin