Take a look at these informational slides to learn about Bazel.
- Edit:
java/src/main/java/bazel/bootcamp/BUILD
- Add a
java_binary
target for theHelloBazelBootcamp.java
file - Run the binary using
bazel run //java/src/main/java/bazel/bootcamp:HelloBazelBootcamp
- The Go
BUILD
files can be fully generated by Gazelle. Run gazelle withbazel run //:gazelle
- Run the go binary using
bazel run //go/cmd/server
- Go to http://localhost:8081 to see results (there won't be any logs yet):
curl http://localhost:8081
- Edit the
BUILD
file forlogger.proto
java_proto_library
documentationjava_grpc_library
documentation (look towards the bottom of the page for Bazel related documentation)
- Edit the
BUILD
file forJavaLoggingClientLibrary.java
- Edit the
BUILD
file forJavaLoggingClient.java
bazel run
the Java binary you wrotebazel run
the Go binary from Section 2- Send messages from the client to the server and view them on http://localhost:8081
- Edit the
BUILD
file forJavaLoggingClientLibraryTest.java
Hint
Names matter for tests. Thejava_test
for this file should be namedJavaLoggingClientLibraryTest
- Edit the
BUILD
file forJavaLoggingClientTest.java
- Run the tests using
bazel test
- Edit the
BUILD
file forintegrationtest.sh
- Run the test using
bazel test
and make sure that it passes - Run the test using
bazel test <target> --runs_per_test=10
and make sure that it passesHint
You may need to modify theBUILD
file again to make this work