go-zeroservice
go-zeroservice copied to clipboard
A "zero" web service written in Go
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, soGopkg.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
andversion.go
contain the source code.