Skip to content

ivan-p-nikolov/cookiecutter-upp-golang

 
 

Repository files navigation

cookiecutter-upp-golang

Project template for UPP microservices in Golang. To be used with the Cookiecutter tool.

Introduction

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

Usage

  1. Install cookiecutter (see documentation for detailed instructions)
  2. 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.

  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 65.9%
  • Dockerfile 15.0%
  • Shell 7.6%
  • Mustache 7.3%
  • Python 4.2%