example-golang-github-app
An example GitHub App, written in Golang
Usage
make
./bin/example-golang-github-app
Development
Use reflex
to auto-reload the webhook server when any file changes are detected:
reflex -s go run cmd/example-golang-github-app/main.go
Send an example webhook:
curl -X POST -d '{"hello":"world"}' -H "Content-type: application/json" http://localhost:8000/
Expose the endpoint over the public internet using ngrok
:
ngrok http 8000
Alternatively, setup an ngrok
configuration file:
tunnels:
main:
proto: http
addr: 8000
And then:
ngrok start main
Resources