Giter Club home page Giter Club logo

stubsrv's Introduction

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.

stubsrv's People

Contributors

sergeyfast avatar

Watchers

James Cloos avatar Glebov Boris avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.