Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mchmarny/dapr-grpc-event-subscriber-template
Template project to jump start your Dapr development in Go for gRPC service that will be triggered by topic events
https://github.com/mchmarny/dapr-grpc-event-subscriber-template
dapr events grpc service topic trigger
Last synced: 5 days ago
JSON representation
Template project to jump start your Dapr development in Go for gRPC service that will be triggered by topic events
- Host: GitHub
- URL: https://github.com/mchmarny/dapr-grpc-event-subscriber-template
- Owner: mchmarny
- License: mit
- Created: 2020-07-03T12:01:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T23:22:09.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T16:40:43.712Z (5 months ago)
- Topics: dapr, events, grpc, service, topic, trigger
- Language: Makefile
- Homepage:
- Size: 1.87 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dapr-grpc-event-subscriber-template [![Go Report Card](https://goreportcard.com/badge/github.com/dapr-templates/dapr-grpc-event-subscriber-template)](https://goreportcard.com/report/github.com/dapr-templates/dapr-grpc-event-subscriber-template)
### template usage
* Click "Use this template" above and follow the wizard to select owner and name your new repo
* When done, clone your new repo, and navigate into it
* Initialize your project to set the package names
* `go mod init github.com//`
* Tidy things up and download modules
* `go mod tidy`
* You're done, now "just" write your subscription event handling logic ;)### common operations
Common operations to help you bootstrap a Dapr gRPC services development in `go`:
```shell
$ make
tidy Updates the go modules and vendors all dependencies
test Tests the entire project
run Runs uncompiled code in Dapr
build Builds local release binary
event Publishes sample JSON message to Dapr pubsub API
image Builds and publish docker image
lint Lints the entire project
tag Creates release tag
clean Cleans up generated files
help Display available commands
```This project also includes GitHub actions in [.github/workflows](.github/workflows) that test on each `push` and build images and mark release on each `tag`. Other Dapr GitHub templates to accelerate Dapr development available [here](https://github.com/dapr/go-sdk/tree/master/service).
### License
This software is released under the [MIT](./LICENSE)