The sdx-image microservice is a bespoke app used within the Office for National Statistics (ONS) to aid with
Survey Data eXchange (SDX). It provides functionality to transform a JSON survey response into a JPEG image.
This allows users downstream to process submissions collected through EQs (Electronic Questionnaires) with the same
set of tools as if the submission had been received in paper form and scanned in.
Ensure you have GO installed on your machine.
Clone the repo:
git clone git@github.com:ONSdigital/sdx-image.gitNavigate to the root of the project:
git cd sdx-imageInstall dependencies:
go mod downloadBuild the application:
go build -o sdx-imageRun the executable
./sdx-imageOr, run the tests:
go test -json ./...Running the tests will also regenerate all of the example images in the examples dir.