https://github.com/devopsmariocom/go-count
Simple go counting service to learn golang
https://github.com/devopsmariocom/go-count
golang learning-by-doing
Last synced: about 1 year ago
JSON representation
Simple go counting service to learn golang
- Host: GitHub
- URL: https://github.com/devopsmariocom/go-count
- Owner: devopsmariocom
- License: mit
- Created: 2021-05-02T09:00:58.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T11:04:51.000Z (over 4 years ago)
- Last Synced: 2025-02-25T00:07:17.518Z (about 1 year ago)
- Topics: golang, learning-by-doing
- Language: HCL
- Homepage:
- Size: 47.9 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-count
[](https://github.com/elmariofredo/go-count/actions/workflows/release.yml)
[](https://coveralls.io/github/elmariofredo/go-count?branch=main)
I'm going to build counter service with following features. Main purpose is to learn how to build go service from sratch and find best way how to deliver it to the production.
TODO:
- [X] HTTP endpoint response with increasing number on every call
- [X] Build CI ( Inspired by [vojtechmares/goreleaser-live](https://github.com/vojtechmares/goreleaser-live/blob/master/.goreleaser.yml) )
- [X] Tests 👻
- [X] Reset counter request
- [X] JSON logging with verbosity level
- [X] Database backend to preserve counter during restart
- [ ] Metrics
- [ ] Automated deployment/rollout to Kubernetes
- [ ] Reasonable test coverage
- [ ] Help flag listing vars ( https://github.com/spf13/pflag )
- [ ] Use models
- [ ] Check conformance with https://github.com/golang-standards/project-layout
- [ ] Add online versioned documentation e.g. https://docusaurus.io/docs
## Versioning
I'm using André Staltz's [ComVer](https://staltz.com/i-wont-use-semver-patch-versions-anymore.html) as I prefer backward compatibility tracking over major.minor.patch decission hell.