Skip to content

buddhamagnet/geller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GELLER - Go client for the Teller API.

SETUP

  1. Clone this repository into your GOPATH.
  2. Run godep restore to get the minimal dependencies.

12-FACTOR GOODNESS

  • Create a .env file for environment variables and drop into the project root. The godotenv package will then parse this file and set environment variables for everything contained in this file.

MAKEFILE

The Makefile provides the following:

  • gomkbuild: build the application binary.
  • gomkinstall: install the application binary.
  • buildstamp: build the appication binary, and when the binary is run with the --version flag, log build date and build commit hash (default stdout).
    • installstamp: install the appication binary, and when the binary is run with the --version flag, log build date and build commit hash (default stdout).
  • gomkxbuild: build all cross-platform binaries, using gox.
  • gomkclean: clean the project directory.
  • vet: run go tool vet on each source file.
  • lint: run golint on each source file.
  • fmt: run go fmt on the entire project.
  • test: run go test for all packages in the project.
  • race: run go test with race detection in all packages in the project.
  • cover: run tests with coverage report in all pkgs in the project.
  • printvars: print all variables defined in the Makefile.

BUILD INFORMATION

To build the service and drop build date information, build as follows:

go build -ldflags "-X main.buildstamp `date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.githash `git rev-parse HEAD`"

Then run --version=yes

TESTS

Run make test for boring old black and white test output.

Run pride to get nicely colorized test output.

About

golang client for teller API - powered by uri

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published