This repository contains the java servers for Woodfield's Warriors Ticket to Ride app.
These services use protobuf based apis. For general information on protobuf, see the protobuf homepage proto3 syntax guide and the style guid.
For information on working with protobuf in Java, see the getting started tutorial and the generated code guide
- Install JDK 8 or greater.
- Install protobuf compiler. It's easiest to download the precompiled binary for your OS, not the language specific versions
- Install bazel
All commands in this section assume you are in the project root.
Unit tests are written under the tests/ subdirectory and should have the same folder structure as src.
To run unit tests, run bazel test <service-name>
.
For example, to test Auth run bazel test auth
.
The service can be built directly with bazel build main
and exectuted with bazel-bin/main
, but running unit tests is usually preferable during development.
To deploy your change, simply commit and push the change to master.