temp-webhooks-api

module
v0.0.0-...-4845449 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT

README

Webhooks API

Dev Image

docker-compose build dev
docker-compose run --rm -u "$(id -u):$(id -g)" dev bash
Generate API

Generate API from api/webhooks/design.go. Run in dev image:

make generate-api

Copy dependencies to the /vendor directory:

make fix

Api Image

Build image:

docker-compose build api

Start server:

docker-compose run --rm -u "$(id -u):$(id -g)" -e KBC_STORAGE_API_HOST="connection.keboola.com" --service-ports api

Open: http://localhost:8888

Deployment

The service is deployed to Azure Container Instances to subscription Keboola 2022-03 Hackathon and resource group zeleni_webhooks.

The built image has to be pushed to repository keboolawebhooks.azurecr.io.

The deployment was created manually by command: az container create --resource-group zeleni_webhooks --file deploy-aci.yaml.

The update can be done by updating the docker image in the repository and restarting the service by command az container restart --name keboolawebhooks --resource-group zeleni_webhooks

License

MIT licensed, see LICENSE file.

Directories

Path Synopsis
api
webhooks
nolint: gochecknoglobals
nolint: gochecknoglobals
webhooks/gen
nolint: gochecknoglobals
nolint: gochecknoglobals
cmd
api
nolint: gocritic
nolint: gocritic
internal
pkg/log
nolint:forbidigo // allow usage of the "zap" package
nolint:forbidigo // allow usage of the "zap" package
pkg/utils/orderedmap
Package orderedmap is modified version of: https://github.com/iancoleman/orderedmap
Package orderedmap is modified version of: https://github.com/iancoleman/orderedmap
pkg/utils/testhelper
nolint forbidigo
nolint forbidigo
pkg/utils/testproject
nolint forbidigo
nolint forbidigo
nolint: gochecknoglobals
nolint: gochecknoglobals

Jump to

Keyboard shortcuts

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