Sign inSign up

castylab/gateway

By castylab

•Updated over 5 years ago

⾨ Casty (Websocket) Gateway Server

Image
1

1.8K

castylab/gateway repository overview

⁠Casty gateway.server

We use this project for real-time communication between our clients and server!

⁠Prerequisites

⁠Clone the project

$ git clone https://github.com/CastyLab/gateway.server.git

⁠Configuraition

Make a copy of config.example.yml for your own configuration. save it as config.yml file.

$ cp config.example.yml config.yml
⁠gRPC configuration

Put your running grpc.server connection details

grpc:
  host: "localhost"
  port: 55283

You're ready to Go!

⁠Run project with go compiler

you can simply run the project with following command

  • this command with install dependencies and after that will run the project
  • this project uses go mod file, You can run this project out of the $GOPAH file!
$ go run server.go

or if you're considering building the project use

$ go build -o server .

⁠or Build/Run the docker image

$ docker build . --tag=casty.gateway

$ docker run -dp --restart=always 3000:3000 casty.gateway

⁠Contributing

Thank you for considering contributing to this project!

Tag summary

Content type

Image

Digest

Size

376.9 MB

Last updated

over 5 years ago

docker pull castylab/gateway