This O'Reilly Lab references this repo.
This project is separated into two parts:
- Server: where gRPC serves the remote calls defined in the proto file
- Client: Express/Node/Bootstrap web page to CRUD the server operations.
To run this app locally, run the following commands in separate command line windows:
- Inside the /server folder:
cargo run --bin mountains_server
- Inside the /client folder:
npm install && node index
Go to http://localhost:3000/ and try the Mountains application.
This project includes Dockerfiles to package the client and server into container images. In turn, there is a Katacoda scenario called Node.js to Kubernetes that shows how this application runs on Kubernetes.
This tutorial was adapted from LogRocket's article.