- Node
- Docker (to run the envoy proxy).
- Clone the repo
- Install dependencies: npm install
- Run below commands to run the envoy proxy.
- docker build --no-cache -t learn-grpc-web .
- docker run -d -p 9090:9090 -p 9901:9901 learn-grpc-web
- Start node server: node server/index.js (it runs on port: 8080)
- Start react app: npm run start
- It will launch the react application.
- Here you can play with application by clicking on buttons (Click Me & Get users) to see the grpc communication with node server.
- Hello World
- Click on "Click Me" button, it will get the message from node server(server/index.js)
- Users module
- Click on "Get Users" button, it will fetch the list of users from node server(server/index.js)
For Users Module, CRUD operations can be performed by running the node files under server/client/*.js(except index.js) Examples: To add new user: node server/client/insert_user.js