https://github.com/kemokemo/my-dotnet-grpc
https://github.com/kemokemo/my-dotnet-grpc
dotnet grpc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kemokemo/my-dotnet-grpc
- Owner: kemokemo
- Created: 2022-01-22T07:53:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-22T08:09:56.000Z (over 4 years ago)
- Last Synced: 2025-04-12T15:08:06.573Z (about 1 year ago)
- Topics: dotnet, grpc
- Language: C#
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My dotnet grpc
This is my sample gRPC app with dotnet.
## Build
```sh
docker build -t my-dotnet-grpc .
```
You can not start ASP.Net Core gRPC app on macOS.
> // Additional configuration is required to successfully run gRPC on macOS.
> // For instructions on how to configure Kestrel and gRPC clients on macOS, visit https://go.microsoft.com/fwlink/?linkid=2099682
## Run
```sh
docker run -p 50051:80 my-dotnet-grpc
```
## Check
Install [grpcurl](https://github.com/fullstorydev/grpcurl) before checking.
```sh
grpcurl -proto Protos/greet.proto -plaintext -d '{"name": "kemokemo"}' localhost:50051 greet.Greeter/SayHello
```
Expected result:
```json
{
"message": "Hello kemokemo"
}
```