go-template

command module
v0.0.0-...-383fca9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 17 Imported by: 0

README

Go-template

TBD

Getting Started

TBD

Features
  • 12-factor app compliant
  • Inteligent health checks (readiness and liveness) - they are checking connection to DB as well
  • Graceful shutdown on interrupt signals
  • Instrumented with Prometheus
  • Structured logging with zap
  • Layered docker builds
  • Multi-stage docker builds
  • Repository for connecting PostgresDB
  • Swagger docs available under /swagger endpoint
Web API
  • GET /version returns information about app version, last commiter, etc
  • GET /metrics returns metrics for prometheus purpose
  • GET /health returns liveness probe
  • GET /ready returns readiness probe
  • GET /swagger.json returns the API Swagger docs, used for Linkerd service profiling and Gloo routes discovery
Prerequisites

You need to have working go environment:

Installing

A step by step series of examples how to get a development env running:

Run docker-compose with all required components:

docker-compose up -d postgres

And run application locally:

make run

Or with docker-compose:

docker-compose up -d application

Now you can go to http://localhost:8080/swagger/ and check whether it's working.

Running the tests

make test
And coding style tests
make lint

Deployment

To build, pack binary into Docker image and push it into dockerhub.com:

make release
kubectl apply -k github.com/mateuszdyminski/go-template/kustomize

Build final binary

make build

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

TBD

License

MIT

Acknowledgments

TBD

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
repository

Jump to

Keyboard shortcuts

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