This is a simple example of using gRPC with .net. Here we will have a CRUD operation about products and we are going to use sqlLite for persistance.
Download the .NET 7.0 SDK from the official Microsoft website:
https://dotnet.microsoft.com/en-us/download/dotnet/7.0
- Clone or Download the Repository: Clone this repository to your local machine or download it as a ZIP archive.
- After downloading and installing the .NET 7.0 SDK, open a terminal or command prompt.
- Navigate to your work directory and go to the Server folder using the cd command:
cd path/to/your/work/directory/grpc-example
- Run this command to execute the migrations and update the database
dotnet ef database update
- Run the command to start the app
dotnet run