项目作者: webix-hub

项目描述 :
Backed for Webix Chat
高级语言: Go
项目地址: git://github.com/webix-hub/chat-go.git
创建时间: 2020-07-06T09:35:32Z
项目社区:https://github.com/webix-hub/chat-go

开源协议:

下载


Backed for Webix Chat

How to start

Run with docker

  1. # build binary
  2. CGO_ENABLED=0 GOARCH=386 go build .
  3. # run docker
  4. docker-compose up -d

the command will start backend at http://localhost:3000

you can change the host name and port in docker-compose.yml

Standalone run

  • create config.yml with DB access config
  1. server:
  2. port: ":8040"
  3. public: "http://localhost:8040"
  4. db:
  5. path: "./db.sqlite"

above config is for sqlite DB, if you want to use mysql change it like

  1. db:
  2. host: localhost
  3. port: 3306
  4. user: root
  5. password: 1
  6. database: files

you need to create the database ( code will init all necessary tables on its own )

  • start the backend
  1. go build
  2. ./chat

group calls

To organize group calls, service uses livekit library. So, to have this feature you need to deploy the instance of livekit on your infrastructure. It can be done through docker ( check the docker-compose.yml ) or as a standalone software ( check instructions at https://livekit.io )

Other ways of configuration

Configuration can be done through config.yml file or through env vars
For example of env usage, check docker-compose.yml