zundoko-go-client is Zundoko Kiyoshi client written in Go.
-
Install Git and Go 1.15+.
-
Clone the project.
$ git clone --recursive https://github.com/kaitoy/zundoko-go-client.git $ cd zundoko-go-client
-
Run Go Build.
$ make build
Node 8+ is required.
In the project root directory, execute the following command to start Zundoko Server.
$ make start-server
You can stop Zundoko Server by make stop-server
.
Execute the built zundoko-client binary to start a Zundoko Kiyoshi.
$ ./bin/zundoko-client
zundoko-client interacts with Zundoko Server and exits after making a Kiyoshi.
Java 8+ is required.
This project uses Swagger Codegen to generate JSON decoders.
Write a swagger spec in swagger/swagger.yaml
and run make model
to generate decoders.
This project uses Ginkgo and gomock for unit tests.
Steps to write unite tests are as follows:
-
Generate a test suite by
make test-suite path/to/pkg
.Just one test suite is needed for each package, and usually there is no need to modify generated ones.
-
Generate a test template by
make test-template path/to/file.go
for each Go file you want to test. -
Generate mocks by
make mock
.This command finds interfaces declared in files under pkg directory, and generates a mock for each interface into mock directory.
-
Write tests in the generated templates using the generated mocks.
Execute make test
to run unit tests.
This project is licensed under the Creative Commons license (CC0 1.0).