Repo demonstrates how to take a protocol buffer schema definition as an input into a code generating Bazel rules. This particulr example generates two things:
- A TypeScript library for building objects which conform to our schema using
ts_proto_library
- A Java interface to implement which conforms to our schema definition using
java_proto_library
app
Contains the TypeScript client written with Angularbackend
Constains the Java API serverschema
Contains the protocol buffer schema defintion
bazel run @yarn//:yarn
Installs npm dependenciesyarn start
Starts a TypeScript development server on port5432
and a Java API server at port8080
- Navigate to
http://localhost:8080
to load the TypeScript client