This serves as an example to implement Randomized Counter-Abuse Token protocol in Java. You can find more details in the RCAT explainer.
- Follow the steps to install Bazel.
You will need to clone the code locally in order to build or test it.
$ git clone https://github.com/youtube/rcat
$ cd rcat/java
You can build the project using the following command:
rcat/java$ bazel build src/main/java/com/google/rcat:*
Note that this command does not produce a library or other artifact, it is only for ensuring the project compiles in your environment.
You can run all tests with the following command:
rcat/java$ bazel test src/test/java/com/google/rcat:*