go-barrage

基于go开发的聊天室

Stars
38

go

chitchat()go

go


config.json

{
  "App": {  //
    "Address": "0.0.0.0:8080", // 
    "Static": "public",  // 
    "Log": "logs",     //
    "StaticPath": "http://127.0.0.1/static/"  // 
  },
  "Db": {          //
    "Driver": "mysql",
    "Address": "192.168.10.10:3306",  // 
    "Database": "chitchat",  // 
    "User": "homestead",     // 
    "Password": "secret"     //  
  },
 "OSS": {
//true falseoss Key
    "IsSaveLocal": true, 
    "AccessKeyID": "xxx",
    "AccessKeySecret": "xxxx",
    "Bucket": "xxx",
    "BucketUrl": "xxx"
  }
}

chitchat_2020-04-28.sql orm


go run main.go

,

./chitchat

demo


<img src="https://github.com/wuqinqiang/go-barrage/blob/master/chat.png">

()


<img src="https://github.com/wuqinqiang/go-barrage/blob/master/user.png">

<img src="https://github.com/wuqinqiang/go-barrage/blob/master/handle.png">

nginx , Supervisor ,dockerdocker ps.

  • ,
    • ()
      ....

,issue,