Skip to content

esiebert/cycling-tracker

Repository files navigation

Cycling Tracker

This system was built for learning purposes, it covers four kinds of service methods:

  • Simple RPC
    • Saving a workout: returns a summary which includes averages from measurements provided
  • Server-side streaming RPC
    • Loading workout measurements: measurements are sent over individually
  • Client-side streaming RPC
    • Recording a workout: measurements are sent over time, and server returns a workout summary
  • Bidirectional streaming RPC
    • Get accumulating averages: provides an output stream of updated averages for every measurement streamed in

Running the system

  1. Given that Rust is installed locally, and dependencies have been installed, run:
make run
  1. Run your favorite gRPC tool to make requests to the API. I recommend using grpcui and running it with:
make ui

Implementing a client

In order to implement a client to this service, you will require the protobuf files which can be found here.

About

gRPC Cycling workout tracker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published