19 Star 175 Fork 86

mulanbay / mulanbay-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
git
Loading...
README
Apache-2.0

项目介绍

木兰湾是用于管理个人消费、锻炼、音乐、阅读、健康、饮食、人生经历等各个衣食住行信息的系统,通过提醒、计划模块利用调度系统来统计分析执行情况。 并通过积分和评分体系来综合评估个人的总体状态。

系统可以说是一个个人助理系统,它主要解决三个问题:

  • 我的计划(期望)是什么?
  • 我要做什么?
  • 我做了什么?

基于以上三个问题,我们是否可以去思考以下两个问题:

  • 我是怎么样的人?(用户画像)
  • 我将会怎么样? (机器学习)

基于SpringBoot3和Vue3新版的项目地址:

后端项目:

前端项目:

该项目基于SpringBoot2和Vue2

该系统是前后端分离的项目,当前项目mulanbay-server为后端API项目,只提供系统的api接口,整个系统必须要同时运行前端才能完整访问。

木兰湾算法端项目:

(对于数据预测,mulanbay-sklearn负责算法,生成pmml模型文件,java端mulanbay-server通过jpmml库加载模型文件对业务数据进行预测)

木兰湾前端项目:

VUE版本

Jquery版本(V3.0版本后不再维护,以VUE版本为主)

木兰湾项目说明

功能简介

  • 基于RBAC的用户权限管理
  • 支持分布式运行的调度功能
  • 基于AHANLP的自然语言学习服务
  • 提供消费、锻炼、音乐、阅读、健康、饮食、人生经历等常用模块
  • 统一的日志管理及日志流分析
  • 提供基于模板化的提醒、计划、图表、行为配置及分析
  • 统一的日历管理,提供日历自动新增、完成功能
  • 提供磁盘、CPU、内存的监控及报警,并可以自动恢复
  • 数据库数据、备份文件自动清理
  • 统一及强大的图表统计分析功能
  • 基于微信公众号消息、邮件的消息提醒服务
  • 基于错误代码的消息发送可配置化
  • 基于Hibernate的配置化的查询便捷封装
  • 提供可配置的个人积分和评分体系
  • 提供多角度的用户行为分析
  • 提供词云、相似度、智能问答等分析功能
  • 基于sklearn的机器学习对一些数据进行预测

文档地址

木兰湾文档https://www.yuque.com/mulanbay/rgvt6k/uy08n4

所用技术

  • 前端:Vue、Jquery、Element UI、Echarts
  • 后端:Spring Boot、Hibernate、Quartz、NLP、Redis & Jwt
核心依赖 版本
Spring Boot 2.3.4.RELEASE
Hibernate 5.4.21.Final
Quartz 2.3.2

项目结构

mulanbay-server
├── mulanbay-ai          -- 机器学习模块,数据预测
├── mulanbay-business    -- 通用业务类
├── mulanbay-common      -- 公共模块
├── mulanbay-persistent  -- 持久层基于hibernate的封装
├── mulanbay-pms         -- 木兰湾API接口层
├── mulanbay-schedule    -- 调度模块封装
├── mulanbay-web         -- 基于SpringMVC的一些封装

项目运行与部署

# Step 1:初始化数据库

1. 下载源代码
2. 在mysql中创建数据库,比如:mulanbay_db
3. 初始化数据库,执行mulanbay-pms工程docs目录下的sql文件:mulanbay_init.sql

注意:
* mulanbay_init.sql里面的数据只有原始的空数据,默认各个初始化配置数据需要自己手动添加(因为每个人的需求不一样)。
* 如果想快速的使用系统可以在菜单“权限管理-用户管理”,选择对该用户(比如mulanbay用户)进行"初始化数据"(初始化数据是以root用户的初始配置为模板,所以不要针对root用户进行初始化数据或格式化数据).
* 系统有两个用户root,mulanbay,都包括所有权限,推荐使用mulanbay用户登录进行业务逻辑操作
* v3.4版本后不再提供mulanbay_init_data.sql文件。

附1:数据库导入方法:
1. 进入mysql终端
mysql -u root -p
2. 创建数据库
create database mulanbay_db DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
3. 选择数据库
use mulanbay_db
4. 导入数据库
source /xx/xx/xx/mulanbay_init.sql(数据库文件绝对路径)

附2:数据库升级方法:
如果你已经安装过本系统,已经有自己的一些业务数据,不想重新导入数据库,可以采用升级方法:
1. 执行数据库表结构更新语句
source /xx/xx/xx/mulanbay_change.sql
2. 执行数据库配置数据更新语句
source /xx/xx/xx/mulanbay_config_update.sql

# Step 2:修改配置文件

1. 在mulanbay-pms/src/main/resources/目录下复制application-local-template.properties文件并重命名为application-local.properties,设置本地配置。
   其中Mysql数据库配置、Redis配置为必须配置,如果需要使用微信公众号的消息发送功能,需要配置.
2. 智能客服、词云、商品重复度、饮食重复度等需要用到AHANLP的自然语言处理,需要配置hanlp.properties,ahanlp.properties
  * hanlp.properties文件中需要设置根路径,如:root=D:/ws/AHANLP_base-1.3
  * ahanlp.properties文件中需要设置里面的各个配置项
  * 词云模块需要使用Python的wordcloud插件(3.0版本及以后不需要,词云修改为echarts实现),安装命令:
    pip3 install wordcloud -i https://pypi.tuna.tsinghua.edu.cn/simple
  * NLP所需要的ahanlpData文件包,请到百度网盘下载:(链接: https://pan.baidu.com/s/1demdX1GjhMiJqM58bJzriQ 提取码: gqcs )
    或者直接去原作者项目处下载:https://github.com/jsksxs360/AHANLP/blob/master/github/w2v.md
    说明:
    【模型】Google_word2vec_zhwiki210720_300d.bin
    【语料】zhwiki_210720_preprocessed.simplied.zip

# Step 3:打包&运行

1. 开发环境
  运行mulanbay-pms子工程下的cn.mulanbay.pms.web.Application

2. 正式环境
  * 进入到mulanbay-server目录,运行mvn clean package
  * 运行mulanbay-pms/target下的mulanbay-pms-3.0.jar文件

后端项目默认的端口是:8080,项目路径为api,完整的路径地址:http://localhost:8080/api/

# Step 4:用户数据初始化

系统默认包含两个用户admin和mulanbay,密码都是123456.admin用户主要是维护使用,一般以mulanbay用户登录。

mulanbay用户默认情况下是没有任何业务数据的,可以在"权限管理/用户管理"里对mulanbay用户进行"初始化数据",系统可以显示mulanbay用户基础的配置数据。

# Step 5:机器学习模型文件pmml导入
如果想要使用数据预测功能,需要从mulanbay-sklearn项目中model文件夹下拷贝模型文件到服务器目录,服务器目录配置项为ml.pmml.modelPath。
模型文件也可以通过VUE版本的PC端页面进行上传。

软件要求

软件 版本
JDK 1.8+
Nginx 1.17+
Redis 6.0+
Mysql 8.0+

硬件要求

内存4G+

系统架构

系统模块

系统模块

系统结构

系统结构

业务流程

业务流程

图表分类

图表分类

在线演示

暂未提供

技术交流

  • QQ群:562502224

参考/集成项目

木兰湾参考、集成了一些项目,有些功能自己也只是一个搬运工,先感谢大家的开源。

Q&A

  • Q:用户计划的时间线统计图没有数据?

    A: 计划的时间线数据需要日终调度程序来统计的,第二天凌晨后才会有当天的数据。

  • Q:我的日历里面没有数据?

    A: 自动生成的日历也是需要日终调度程序来统计的,第二天凌晨后才会有数据。 不过日历也可以手动创建,但是手动日历无法自动关闭。

项目展望

项目截图

基于Vue的PC端

基于Vue的移动端

微信公众号消息推送

鸣谢

谢谢JetBrains公司一直以来对木兰湾项目的支持,提供了全系列产品的免费license。

JetBrains开源支持计划:https://jb.gg/OpenSourceSupport.

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

木兰湾是用于管理个人消费、锻炼、音乐、阅读、健康、饮食、人生经历等各个衣食住行信息的个人信息管理系统,通过提醒、计划模块利用调度系统来统计分析执行情况,并通过积分和评分体系来综合评估个人的总体状态。系统基于SpringBoot前后端分离,技术栈:Spring、Hibernate、Quartz、Vue 展开 收起
Java
Apache-2.0
取消

发行版 (3)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/mulanbay/mulanbay-server.git
git@gitee.com:mulanbay/mulanbay-server.git
mulanbay
mulanbay-server
mulanbay-server
master

搜索帮助