Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webix-hub/chat-go
Backed for Webix Chat
https://github.com/webix-hub/chat-go
chat webix webix-backend webix-chat
Last synced: about 1 month ago
JSON representation
Backed for Webix Chat
- Host: GitHub
- URL: https://github.com/webix-hub/chat-go
- Owner: webix-hub
- Created: 2020-07-06T09:35:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-10T08:59:16.000Z (over 1 year ago)
- Last Synced: 2024-04-09T21:15:08.013Z (9 months ago)
- Topics: chat, webix, webix-backend, webix-chat
- Language: Go
- Homepage: https://webix.com
- Size: 175 KB
- Stars: 2
- Watchers: 9
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Backed for Webix Chat
==================### How to start
#### Run with docker
```bash
# build binary
CGO_ENABLED=0 GOARCH=386 go build .
# run docker
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
```
server:
port: ":8040"
public: "http://localhost:8040"
db:
path: "./db.sqlite"
```above config is for sqlite DB, if you want to use mysql change it like
```yaml
db:
host: localhost
port: 3306
user: root
password: 1
database: files
```you need to create the database ( code will init all necessary tables on its own )
- start the backend
```bash
go build
./chat
```### group calls
To organize group calls, service uses [livekit library](https://livekit.io/). 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