Casty real-time communication server!
- First, ensure that you have installed Go 1.11 or higher
- gRPC.server Casty gRPC.server
$ docker pull castyapp/gateway:latest
$ docker run -p 55283:55283 castyapp/gateway
version: '3'
services:
gateway:
image: castyapp/gateway:latest
ports:
- 3001:3001
- 3002:3002
args: ['--config-file', '/config/config.hcl']
volumes:
- $PWD/config.hcl:/config/config.hcl
$ git clone https://github.com/castyapp/gateway.server.git
Make a copy of example.config.hcl
for your own configuration. save it as config.hcl
file.
$ cp example.config.hcl config.hcl
You can find more information about how to run grpc server is available here [https://github.com/castyapp/grpc.server#readme]
grpc {
host = "localhost"
port = 55283
}
Put your redis connection here
# Redis configurations
redis {
# if you wish to use redis cluster, set this value to true
# If cluster is true, sentinels is required
# If cluster is false, addr is required
cluster = false
master_name = "casty"
addr = "127.0.0.1:26379"
sentinels = [
"127.0.0.1:26379"
]
pass = "super-secure-password"
sentinel_pass = "super-secure-sentinels-password"
}
You're ready to Go!
you can simply run the project with following command
$ go run server.go
or if you're considering building the project
$ go build -o server .
$ docker build . --tag=casty.gateway
$ docker run -d --restart=always -p 3001:3001 -p 3002:3002 casty.gateway
Thank you for considering contributing to this project!
Casty is an open-source software licensed under the MIT license.