Skip to content
/ im Public

基于Golang、Websocket、MongoDB 实现即时通讯

License

Notifications You must be signed in to change notification settings

GetcharZp/im

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IM

IM(即时通讯)

往期视频:https://www.bilibili.com/video/BV1rJ411p7Mi/

本期视频:https://www.bilibili.com/video/BV1YL4y1c7ZX

技术栈

语言:Golang 数据库:MongoDB 框架:GIN 协议:Websocket

核心包

https://github.com/gorilla/websocket

扩展安装

go get -u github.com/gin-gonic/gin
go get github.com/gorilla/websocket
go get go.mongodb.org/mongo-driver/mongo
go get -u github.com/golang-jwt/jwt/v4
go get github.com/satori/go.uuid

已弃用的扩展

go get github.com/dgrijalva/jwt-go

Docker 安装 mongoDB

docker run -d --network some-network --name some-mongo \
-e MONGO_INITDB_ROOT_USERNAME=admin \
-e MONGO_INITDB_ROOT_PASSWORD=admin \
-p 27017:27017 \
mongo

About

基于Golang、Websocket、MongoDB 实现即时通讯

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages