Skip to content

An example of how to set up tonic web wasm client with a tonic based gRPC server

License

Notifications You must be signed in to change notification settings

NeotenicPrimate/tonic-web-wasm-client-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tonic-web-wasm-client-example

An example of how to set up tonic web wasm client with a tonic based gRPC server

Uses Yew for the front end and Tonic (with Tonic-Web) for the backend with tonic-web-wasm-client to glue them together.

Yew applications

To run Yew applications you need to install trunk

cargo install --locked trunk

Running the application

You will need two console windows

cd server
cargo run
cd client
trunk serve

Then navigate to http://localhost:8080 and you can hit the button to get a message from the server

Coming soon

I hope to update this to make it a bit more involved, including database storage, sending data etc. But for now hopefully this helps people not have to dwell on problems that I had.

About

An example of how to set up tonic web wasm client with a tonic based gRPC server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 86.8%
  • CSS 7.6%
  • HTML 5.6%