README
¶
scheme-service
Servicecomponent to make CRUD actions available for the scheme in the 'Vorderingen overzicht' system.
Installation
Prerequisites:
- Download the required Go dependencies:
go mod download
- Now start the scheme service:
go run cmd/scheme-service/main.go
By default, the scheme service will run on port 80
.
Generate openapi json
docker run --rm -v "${PWD}/api:/api" openapitools/openapi-generator-cli:v7.9.0 generate \
-i /api/openapi.yaml \
-o /api \
-g openapi
Adding mocks
We use GoMock to generate mocks. When you make updates to code for which there are mocks, you should regenerate the mocks.
Regenerating mocks
sh scripts/regenerate-gomock-files.sh
Deployment
Click to show internal directories.
Click to hide internal directories.