Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crookm/hello-dapr
Sample .NET Dapr microservice application
https://github.com/crookm/hello-dapr
Last synced: 2 days ago
JSON representation
Sample .NET Dapr microservice application
- Host: GitHub
- URL: https://github.com/crookm/hello-dapr
- Owner: crookm
- Created: 2023-03-09T08:46:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-16T11:02:09.000Z (almost 2 years ago)
- Last Synced: 2025-01-31T12:37:19.495Z (10 days ago)
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Dapr
### Running the services
In the directory of each service, run the following command:
```sh
dapr run --app-id --app-port -- dotnet run
```Where `` is one of `math-service`, `greeter-service`, or `api-service`. These are arbitrary tags, but must be shared across all applications. In this set of services, you'll only see it used in `src/HelloDapr.Api/Program.cs` where I configure a gRPC inteceptor to add the id to every request as metadata. This is so the Dapr gRPC proxy knows where to direct requests.
The `` is the port where the application will run, which is where Dapr will direct requests.