# wb-server **Repository Path**: syuchen/wb-server ## Basic Information - **Project Name**: wb-server - **Description**: 这是一款基于TCP/UDP Socket通信以及Redis与MySQL数据库实现的多人白板软件(C/S架构),支持用户注册与登录、用户群组创建与管理、群组内白板创建与管理、群组成员多人在线同时绘画/聊天、白板绘画内容保存到数据库以及从数据库中加载指定白板绘画内容等功能。白板支持刷子、橡皮擦、文字、线、喷壶、铅笔以及各类几何形状多种画笔,并可自由选择画笔颜色。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: rpc-dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-03-15 - **Last Updated**: 2024-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于Socket的多人在线绘画白板 ### 一、项目预览 这是一款基于TCP/UDP Socket通信以及Redis与MySQL数据库实现的多人白板软件(C/S架构),支持用户注册与登录、用户群组创建与管理、群组内白板创建与管理、群组成员多人在线同时绘画/聊天、白板绘画内容保存到数据库以及从数据库中加载指定白板绘画内容等功能。白板支持刷子、橡皮擦、文字、线、喷壶、铅笔以及各类几何形状多种画笔,并可自由选择画笔颜色。 **客户端主界面** : ![客户端主界面](resources/images/client-main.png) **白板界面** ![白板界面](resources/images/image.png) ### 二、项目架构 #### 1. RPC框架 - **YuchenRpc** : 支持TCP/UDP通信的自定义RPC框架,使用Redis作为注册中心,支持服务地址本地缓存、负载均衡、连接池、心跳保活、服务容错等机制,支持BIO/NIO服务模式。 #### 2.服务端(wb-server) - **core模块** :服务端核心模块。包括数据库连接与操作服务db、数据库实体类beans、数据访问层dao、核心工具类utils - **main-server模块** :主服务模块(TCP)。提供用户注册与登录、用户群组创建与管理、群组内白板创建与管理等服务。 - **board-server模块** :白板即时通讯服务模块(UDP)。提供在线白板信息获取、实时绘画/聊天消息发布与推送等服务。 #### 3.客户端(wb-client-plus) 客户端开源地址:[https://gitee.com/syuchen/wb-client-plus](https://gitee.com/syuchen/wb-client-plus) - **client模块** :客户端模块。登录/注册界面、用户主界面通过RPC框架的TCP通信访问main-server服务,在线白板界面通过RPC框架的UDP通信访问board-server服务。 - **server-api模块** :公共服务接口模块。main-server和board-server提供的服务的接口类,RPC框架提供对其的代理访问。 #### Installation 1. xxxx 2. xxxx 3. xxxx #### Instructions 1. xxxx 2. xxxx 3. xxxx #### Contribution 1. Fork the repository 2. Create Feat_xxx branch #### Gitee Feature 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md 2. Gitee blog [blog.gitee.com](https://blog.gitee.com) 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) 4. The most valuable open source project [GVP](https://gitee.com/gvp) 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)