Project template for UPP microservices in Golang. To be used with the Cookiecutter tool.
This template is meant as an up-to-date skeleton for new Go microservices in the Universal Publishing Platform.
Whenever we need to e.g. bump the Docker image version or improve the README.md template or any other change that new services need to pick up, this is the place to make those changes.
Current features
- ready-to-run app
- basic admin endpoints with a sample healthcheck
- Docker config
- CircleCI config
- vendoring support
- README.md skeleton
- .gitignore file
- Install cookiecutter (see documentation for detailed instructions)
- Create new local repository
cd $GOPATH/src/github.com/Financial-Times
cookiecutter [email protected]:Financial-Times/cookiecutter-upp-golang.git
You will be prompted to provide values for template properties (or accept defaults). See cookiecutter.json for supported properties.
- Make use of your new repo
cd $GOPATH/src/github.com/<your_new_repo>
go get
dep init
dep ensure
go build
The app should build and run with basic admin endpoints