Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khoido2003/.net_grpc
gRPC in ASP.NET
https://github.com/khoido2003/.net_grpc
Last synced: about 1 month ago
JSON representation
gRPC in ASP.NET
- Host: GitHub
- URL: https://github.com/khoido2003/.net_grpc
- Owner: khoido2003
- Created: 2024-11-03T05:39:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-07T05:40:52.000Z (2 months ago)
- Last Synced: 2024-11-07T06:28:23.125Z (2 months ago)
- Language: C#
- Size: 523 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gRPC API With .NET
## Create project
bash
```
dotnet new grpc -o NetGrpc
```## Isue with the HTTPS
bash
```
dotnet dev-certs https --trust
```## Add package
bash
```
dotnet add package + name
```
Find more packages at https://www.nuget.org## Run the project
bash
```
dotnet run
```## Set secret userId
bash
```
dotnet user-secrets initdotnet user-secrets set "UserId" "sa"
dotnet user-secrets set "Password" "PASS"
dotnet user-secrets remove "Password"
dotnet user-secrets remove "UserId"
```
## Install dotnet-ef
bash
```
dotnet tool install --global dotnet-ef
```## Create migration
bash
```
dotnet ef migrations add + migrationName
```## Remove migration
bash
```
dotnet ef migrations remove
```## Update DB
bash
```
dotnet ef database update
```## Clear nuget local
bash
```
dotnet nuget locals all --clear
```