https://github.com/clement-jean/grpc-csharp-course-working
https://github.com/clement-jean/grpc-csharp-course-working
grpc grpc-csharp udemy
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clement-jean/grpc-csharp-course-working
- Owner: Clement-Jean
- Created: 2022-05-16T07:17:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T06:52:41.000Z (almost 3 years ago)
- Last Synced: 2025-01-19T12:54:00.219Z (4 months ago)
- Topics: grpc, grpc-csharp, udemy
- Language: C#
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotnet templates for grpc-csharp-course
This repository contains two templates for creating gRPC project faster during my Udemy course (repo: [grpc-csharp-course](https://github.com/Clement-Jean/grpc-csharp-course))
You should clone this repository in a folder called `working` and to install the templates run:
```
dotnet new --install working/templates/grpcserver
dotnet new --install working/templates/grpcclient
```and to uninstall:
```
dotnet new --uninstall working/templates/grpcserver
dotnet new --uninstall working/templates/grpcclient
```After having installed the templates, you will be able to run the following commands:
```
dotnet new grpcserver
dotnet new grpcclient
```## Why ?
The original `grpc` template provided with the dotnet CLI comes with a lot of boilerplate and this is quite annoying, especially when recording a online course. Furthermore, the dotnet CLI does not provide a way to create a client easily. Even though my client template is a basic console app, this could be replicated easily to other more complex setups.
## grpcserver
This template is a bare bone grpc server without any proto file and any service. It contains a dependency to `Grpc.AspNetCore`.
## grpcclient
This template is a console project having dependency to `Google.Protobuf`, `Grpc.Net.Client` and `Grpc.Tools`.