Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 init

dotnet 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
```