Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

T-M-A/stubsrv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 91.3%
  • Makefile 8.7%