sergeyfast / stubsrv

golang service skeleton app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stubsrv

goreport

stubsrv is a skeleton application in Go for building simple services.

Build on top of

Tooling

Overview

This sample app was created as proof-of-concept template for new services. It uses proven packages and following Twelve-Factor App principles.

Makefile

  • make tools installs goconvey, trash and staticcheck into your GOPATH
  • make fix runs go get .
  • make vet runs go vet and staticcheck
  • make fmt runs gofmt
  • make deps runs trash for vendor.conf (don't forget to specify correct versions of libraries)
  • make build or make rebuild builds or rebuilds your app
  • make run runs app in verbose mode with default config.cfg
  • make test or make test-short runs go test (with or without -test.short flag)
  • make convey runs goconvey for testing and code coverage.

First run

What's inside?

  • basic structure and code organization
  • TOML configs
  • standard log.Logger usage with two levels: debug & error
  • working with PostgreSQL database
  • working with labstack/echo
  • working with metrics via Prometheus (labstack/echo metrics as middleware)
  • working with tests via goconvey
  • vendoring example via trash

License

This project is released under the MIT license.

About

golang service skeleton app

License:MIT License


Languages

Language:Go 91.3%Language:Makefile 8.7%