command
module
Version:
v0.0.0-...-1cfd607
Opens a new window with list of versions in this module.
Published: Dec 24, 2021
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
simple-go-starter
Intro
Architecture
APIs
The Go swaggo plugin is used to generate API doc with annotations in the code.
The yaml of swagger api file is at swagger.yaml. Please review it with online swagger editor
Infrastructure
Makefile takes care of:
- Run code linter with golangci-lint docker
- Download dependencies using Go modules
- Build binary into
build/bin/
- Build docker image using Dockerfile
- Run unit test and generate test coverage report into
coverage.out
- Generate swagger API doc
- Clean the compiled binary
The repo is integrated with Travis CI pipeline with travis.yml, which supports stages:
- Lint
make lint
- Unit test
make test
- Build binary
make build
- Deploy the local built image on k8s cluster, check health of web service
- Install k8s cluster on the fly using k8s Kind (running k8s cluster into container)
- Build go-starter docker image locally
- Load local built image into k8s cluster
- Deploy go-starter app
- Check the log of running pod
- Deploy a k8s service for go-starter
- Forward local traffic into the k8s service by kubectl port-forward
- Check health of go-starter by curl
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.