1 Star 0 Fork 0

mlnt / IM聊天DEMO-基于vue和workerman

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

安装说明

  • chat_server 是使用了workerman实现的服务端,直接点击start_for_win.bat 启动即可,没有在linux下面测
  • chat_client 是前端,基于vue实现

服务器端配置

  • 我使用的是win10的环境,本地要安装mysql和redis,
  • 导入数据库,然后配置连接,数据库配置都在Event.php那个文件里面
  • chat_server缺库的话就使用composer安装
  • window系统 直接双击运行start_for_win.bat
  • linux系统 执行php start.php start 或 php start.php start -d

客户端配置

  • 修改 chat_client\src\api\client.js中的第49行ws地址为你自己的内网地址或域名。
  • chat_client缺库的话就使用npm安装
  • npm run dev 后访问8080端口看效果
  • 就这些了,很简单

功能说明

  • 群聊
  • 登陆、退出登陆
  • 掉线重连
  • 登陆和掉线重连后获取离线消息
  • 超过设定时间自动退出登陆
  • 消息持久化

效果图

登陆/注册界面:

输入图片说明 输入图片说明

聊天界面:

输入图片说明

群信息界面:

输入图片说明

MIT License Copyright (c) 2020 独孤码农 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用VUE、workman、websocket技术实现的在线聊天 展开 收起
PHP
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/mlnt/vue-workerman-chat.git
git@gitee.com:mlnt/vue-workerman-chat.git
mlnt
vue-workerman-chat
IM聊天DEMO-基于vue和workerman
master

搜索帮助