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
appContains the TypeScript client written with AngularbackendConstains the Java API serverschemaContains the protocol buffer schema defintion
bazel run @yarn//:yarnInstalls npm dependenciesyarn startStarts a TypeScript development server on port5432and a Java API server at port8080- Navigate to
http://localhost:8080to load the TypeScript client