The Basic TME Transformer generates UPP representations of TME concepts for a set of taxonomies: Alphaville Series, Brands, Genres, Locations, People, Sections, Special Reports, Subjects, Topics .
Download the source code, dependencies and test dependencies:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
go get -u github.com/Financial-Times/basic-tme-transformer
cd $GOPATH/src/github.com/Financial-Times/basic-tme-transformer
dep ensure -v -vendor-only
-
Run the tests and install the binary:
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh cd $GOPATH/src/github.com/Financial-Times/basic-tme-transformer go test -race ./... go install
-
Run the binary (using the
help
flag to see the available optional arguments):$GOPATH/bin/basic-tme-transformer [--help]
-
Test:
-
Either using curl:
curl http://localhost:8080/transformers/topics/__ids | json_pp
-
Or using httpie:
http GET http://localhost:8080/transformers/topics/__ids
-
How can I build and deploy it (lots of this will be links out as the steps will be common)
e.g.
- Built by Docker Hub on merge to master: coco/basic-tme-transformer
- CI provided by CircleCI: basic-tme-transformer
For Swagger style documentation, see here.
The standard admin endpoints are supported:
- /__health - Checks whether all taxonomies have their data loaded.
- /__gtg - Checks whether all taxonomies have their data loaded.
- /__build-info