Skip to content

strmprivacy/demo-grpc-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example app with gRPC in React

This app communicates with the Kotlin backend, which can be found here.

Because of CORS, and the Java backend not supporting OPTIONS requests, we have a separate envoy proxy, which handles CORS.

Compiling the proto to JavaScript

To compile the proto definition to JavaScript code and Typescript definitions, run: ./proto/compile.sh.

Running Envoy

We have a docker configuration, which can be built and run with: ./envoy/run.sh.

Run the App

The app is built with Create React App and uses WebPack. You can run the app with: npm run start.