1 Star 1 Fork 3

wuchengshi / chat

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

安装方法

本系统升级到golang1.12,请开启如下支持

#开启go mod支持
export GO111MODULE=on
#使用代理
export GOPROXY=https://goproxy.io

声明

课程参考 https://coding.imooc.com/class/339.html,本程序借鉴课程中思想,实现PC端的即时通讯

:smile: 有问题可联系我,微信 wucs_dd ,拉你入 Go 群,方便交流。

1.项目配置,非常重要

1.1 数据库配置

修改config/config.ini 中数据库配置文件,数据库支持 MySQL 及 SQL Server,改为你自己的数据库以及密码

Db = mysql
DbHost = 127.0.0.1
DbPort = 3306
DbUser = root
DbPassWord = root
DbName = chat

1.2 端口配置

HttpPort = :8080

1.3 建表语句

位于 model/chat.sql

  • admin_user:用户表,系统自动加载表 admin_user 里的用户,作为默认可添加好友
  • community:群信息表
  • contact:用户关系表
  • record:聊天记录表

1.4 页面入口地址

http://127.0.0.1:8080/chat.html

2.依赖包安装

使用go mod 自动处理安装包

演示截图

  1. 添加好友 添加好友

  2. 单聊 单聊

  3. 群聊 群聊

MIT License Copyright (c) 2022 wuchengshi 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.

简介

golang+vue 即时通讯,仿微信PC端,系统内部聊天 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
HTML
1
https://gitee.com/wekenw/chat.git
git@gitee.com:wekenw/chat.git
wekenw
chat
chat
main

搜索帮助