A simple go-micro web service that listens to incoming webhooks and sends out events over specified topics.
Auto-generated with
micro new gitlab.com/gitmate-micro/listen --namespace=gitmate.micro --type=web
- FQDN: gitmate.micro.web.listen
- Type: web
- Alias: listen
Micro services depend on service discovery. The default is consul.
# install consul
brew install consul
# run consul
consul agent -dev
A Makefile is included for convenience
Build the binary
make build
Run the service
./listen
Build a docker image
make docker
The binaries built are delivered via TravisCI using goreleaser. Latest releases are available here.
For released images, please visit the GitLab Container Registy for this repository here.
To run the latest image, pull it with docker
# login to gitlab container registry with your credentials
docker login registry.gitlab.com
# run the container locally exposing port 8000
make run-docker