shane13hsi / api_schemas_with_bazel

Code repo for API Schemas with Bazel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cross language schema definitions with Bazel

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:

  1. A TypeScript library for building objects which conform to our schema using ts_proto_library
  2. A Java interface to implement which conforms to our schema definition using java_proto_library

Repo overview

  • app Contains the TypeScript client written with Angular
  • backend Constains the Java API server
  • schema Contains the protocol buffer schema defintion

Running the code

  • bazel run @yarn//:yarn Installs npm dependencies
  • yarn start Starts a TypeScript development server on port 5432 and a Java API server at port 8080
  • Navigate to http://localhost:8080 to load the TypeScript client

About

Code repo for API Schemas with Bazel

License:MIT License


Languages

Language:Python 48.9%Language:TypeScript 20.9%Language:Java 20.4%Language:Shell 7.9%Language:HTML 1.8%