example-golang-github-app

module
v0.0.0-...-99e6061 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: ISC

README

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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL