Writing a webserver in go gets really repetitive after a while, this is a boilerplate to get started quickly.
Dependencies:
- gin-gonic/gin for routing
- go-pg/pg for postgres orm
- spf13/viper for config management
- (todo) sirupsen/logurs for logging
- (todo) jarcoal/httpmock for http mocking unit tests
- Rename go module to your needs: https://www.jetbrains.com/go/guide/tips/rename-go-module-name/
- docker-compose up -d to run as it is.
- Logging
- Interfaces for services + gomock
- Interfaces for go-pg + gomock
- Sample http mock test for services' external api calls
- point 2 to 4 => more tests