https://github.com/marcosrachid/go-grpc
https://github.com/marcosrachid/go-grpc
go golang grpc
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcosrachid/go-grpc
- Owner: marcosrachid
- License: apache-2.0
- Created: 2020-09-02T13:05:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T14:03:21.000Z (almost 6 years ago)
- Last Synced: 2023-03-09T06:16:07.082Z (over 3 years ago)
- Topics: go, golang, grpc
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-grpc
====
GRPC server and client with golang based on grpc lib
- - - -
## Necessary Technology Versions
Technology | Version
------------- | -------------
Go | go1.14.3 linux/amd64
Docker | 18.09.6
docker-compose | 1.24.1
libprotoc | 3.13.0
## Pre-running
If you're going to start the application manually
$ cd ssl && ./generate-keys.sh
If you're going to start the application with docker
$ cd ssl && ./generate-keys-docker.sh
## Regenerate protobuf files
If any changes were made to proto files
$ cd internal/store && protoc --go_out=. --go-grpc_out=. store.proto
## Running
To run the chat server we create a docker container for it
$ docker-compose up -d
## Configurations
### Server Environment Variables
| Name | Description | Default |
| ---- | ----------- | ------- |
| PORT | Server Port | 4000 |
### Client Environment Variables
| Name | Description | Default |
| ---- | ----------- | ------- |
| ADDR | Server IP | localhost |
| PORT | Server Port | 4000 |
## Source
Source | Data
------------- | -------------
Link |