Skip to content

rumyantseva/go-zeroservice

Repository files navigation

Release Build Status Go Report Card

go-zeroservice

A "zero" web service written in Go. This service respresents an example for this article: Готовим сборку Go-приложения в продакшн.

Quick start to try how it works

  • Use make vendor to update dependencies.
  • Use make check to check if there are no problems in the source code.
  • Use make build to prepare a build.

What the files mean

Yes, there are a lot of configuration files here 🤓

  • Makefile contains popular instructions to check and build the source code.
  • Gopkg.toml was made automatically by dep, so Gopkg.lock did. It contains configuration of external dependecies. If you need to know more about dependencies and dep, please, watch this video.
  • vendor is a directory to store external dependencies, there is only httrouter here because it is my only dependency in this project. If I want to have production-readiness, I prefer to store this directory in git.
  • .travis.yml describes CI configuration for Travis CI.
  • And finally app.go and version.go contain the source code.