# MyGraph **Repository Path**: murongxiaobei/MyGraph ## Basic Information - **Project Name**: MyGraph - **Description**: MyGraph 管理后台,集成经典RABC权限管理、Oauth2.0认证服务、在线画图、ER模型设计与在线文档管理,是一个高度集成的后台模板。 - **Primary Language**: Java - **License**: MulanPSL-2.0 - **Default Branch**: main - **Homepage**: https://mygraph.renlm.cn - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 4 - **Created**: 2024-04-29 - **Last Updated**: 2024-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 ### 这是一个经典RABC权限后台 实现了完整的用户、组织机构、角色资源、数据字典、定时任务、文件管理、登录日志等功能。 ### 这是一个Oauth2.0认证服务 支持授权码、客户端及自定义的密码模式。 ### 这是一个在线画图工具 强化支持ER模型设计,可从数据库直接逆向生成ER图,并可由ER图导出DDL建表语句。 兼容多种数据库,目前已实现对MySQL、PostgreSQL的支持,可自由扩展。 自动计算图形尺寸,并生成封面图。 ### 这是一个在线文档系统 集成语法增强版的Markdown文档,支持团队协作、版本控制与分享。 分享文档: 系统手册 ,查看密码:123654 ## 源码地址 https://gitee.com/renlm/MyGraph.git https://github.com/renlm/MyGraph.git ## 系统体验 体验地址:https://mygraph.renlm.cn/ ***此为体验系统,请不要修改密码,不定期重置为初始状态。*** ``` 账号(超级管理员):S-linghc 账号(普通用户):S-renyy 统一密码:123654 ``` ## 关键教程 ### 在线文档 #### 新建项目 ![新建项目](https://renlm.gitee.io/imgs/MyGraph2/201.png "新建项目") #### 成员管理 ![成员管理](https://renlm.gitee.io/imgs/MyGraph2/202.png "成员管理") #### 新建文档 支持多级目录,支持Markdown文档、图形设计、在线表格三种类型。 ![点击项目名称,进入文档管理](https://renlm.gitee.io/imgs/MyGraph2/210.png "点击项目名称,进入文档管理") ![新建分类](https://renlm.gitee.io/imgs/MyGraph2/211.png "新建分类") ![新建子级](https://renlm.gitee.io/imgs/MyGraph2/212.png "新建子级") ![编辑文档](https://renlm.gitee.io/imgs/MyGraph2/213.png "编辑文档") ![Markdown文档](https://renlm.gitee.io/imgs/MyGraph2/214.png "Markdown文档") #### 分享与收藏 收藏或分享后,在知识文库可快速进入。 ![分享与收藏](https://renlm.gitee.io/imgs/MyGraph2/215.png "分享与收藏") ### 数据库设计 #### 从数据源生成ER图 新建数据源,选择表生成ER图后,根据提示进入文档管理中查看编辑图形。 ![新建数据源](https://renlm.gitee.io/imgs/MyGraph2/301.png "新建数据源") ![选择表](https://renlm.gitee.io/imgs/MyGraph2/302.png "选择表") ![生成ER图](https://renlm.gitee.io/imgs/MyGraph2/303.png "生成ER图") #### 数据库ER模型设计 ![打开工具](https://renlm.gitee.io/imgs/MyGraph2/304.png "打开工具") ![工具栏](https://renlm.gitee.io/imgs/MyGraph2/305.png "工具栏") ![添加表](https://renlm.gitee.io/imgs/MyGraph2/306.png "添加表") ![添加表](https://renlm.gitee.io/imgs/MyGraph2/307.png "添加表") ![双击表编辑](https://renlm.gitee.io/imgs/MyGraph2/308.png "双击表编辑") ![我的字段库](https://renlm.gitee.io/imgs/MyGraph2/309.png "我的字段库") #### 导出DDL 图形分类为ER模型的才可导出DDL,下载的DDL建表语句带注释,可直接执行。 ![下载DDL](https://renlm.gitee.io/imgs/MyGraph2/310.png "下载DDL") ![DDL](https://renlm.gitee.io/imgs/MyGraph2/311.png "DDL") #### 图形设计 展示所有公开及自己名下的图。 除了数据库ER图,同时支持其它诸如流程图、UML、思维导图等常见图形。 自动计算图形尺寸并生成封面。 ![所有公开及自己名下的图](https://renlm.gitee.io/imgs/MyGraph2/312.png "所有公开及自己名下的图") ## 主要技术组件 SpringBoot3.0.0 + SpringSecurity6.0.0 + spring-security-oauth2-authorization-server1.0.0 MyBatis-plus + My-Plugin MySQL + Redis + Rabbitmq Chrome + Chromedriver EasyUI + Mxgraph + Editor.md ## 本地化部署 ### 初始账号 ``` 超级管理员:S-linghc,密码:123654 普通用户:S-renyy,密码:123654 ``` ### 数据库初始脚本 数据库脚本在resource/db目录下。 项目默认启动test环境,启动dev环境会重建库。 ![数据库初始脚本](https://renlm.gitee.io/imgs/MyGraph2/100.png "数据库初始脚本") ### Redis、Rabbitmq队列、数据库 本地化部署请修改Redis、Rabbitmq队列、数据库的地址账号及密码。 ![redis、mq队列、数据库](https://renlm.gitee.io/imgs/MyGraph2/101.png "redis、mq队列、数据库") ### 谷歌浏览器驱动 生成封面用到了谷歌浏览器驱动,请修改驱动地址。 ![谷歌浏览器驱动](https://renlm.gitee.io/imgs/MyGraph2/102.png "谷歌浏览器驱动") ### 修改自定义参数 配置文件中的自定义参数请修改为自己的项目地址。 服务器监控Websocket配置等需要。 ![修改自定义参数](https://renlm.gitee.io/imgs/MyGraph2/103.png "修改自定义参数")