1 Star 0 Fork 0

EDSIONKxxx/P2P_IM_Demo_GOLANG

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

P2P_IM_Demo_GOLANG

介绍

GOLANG开发的基于websoket和gin的p2p通讯demo 均用apipost测试,基于gorm开发了个注册登录的api 无前端页面,感兴趣的可以拿去作为服务器开发前端页面

软件架构

开发工具:goland 技术栈:golang gin gorm websocket mengodb mysql redis linux 软件架构说明 goland内目录架构

安装教程

  1. 安装golang
  2. 配置golang环境
  3. 设置mysql mongodb
  4. redis不用配置,用的是本人服务器的,不过最好是配置成自己的

使用说明

  1. mysq新建一个数据库和自己ini文件对应dbname要一样
  2. mongodb新建一个数据库和自己ini文件对应dbname要一样 附带ini图片以及数据库图片 数据库图片 ini文件图片 用apipost测试 apipost测试链接:https://console-docs.apipost.cn/preview/c11f9f4e50d15de6/3261d72c3982670e 测试数据格式为json,举例: {"type":3,"content":"test"} 发送方和接收方通过query传数据,举例id1(uid)向id2(toUid)用户发送信息 localhost:9000/ws?uid=1&toUid=2

测试截图: 发送方 接收方

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

Empty file

About

GOLANG开发的基于websoket和gin的p2p通讯demo expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/EdsionKXXX/p2-p_-im_-demo_-golang.git
git@gitee.com:EdsionKXXX/p2-p_-im_-demo_-golang.git
EdsionKXXX
p2-p_-im_-demo_-golang
P2P_IM_Demo_GOLANG
master

Search

Cb406eda 1850385 E526c682 1850385