Skip to content

nkprince007/listen

Repository files navigation

listen

pipeline status travis-ci build status

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

Getting Started

Configuration

  • FQDN: gitmate.micro.web.listen
  • Type: web
  • Alias: listen

Dependencies

Micro services depend on service discovery. The default is consul.

# install consul
brew install consul

# run consul
consul agent -dev

Usage

A Makefile is included for convenience

Build the binary

make build

Run the service

./listen

Build a docker image

make docker

Releases

The binaries built are delivered via TravisCI using goreleaser. Latest releases are available here.

Images / Container Registry

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