ConSol / grpc-petshop-rs

Showcasing minimalistic full-stack project using gRPC with a Rust backend and a Browser frontend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-petshop-rs

Showcasing minimalistic full-stack project using gRPC with a Rust backend and a Browser frontend.

More specific:

  • Rust using tokio, tonic
  • Browser using solid-js

Installation

About the stack

Technologies in the stack are targeting:

  • fast and simple development cycle
    • client (hot-)reloading: ~1s
      • website
      • API contract changes
    • server auto-compiling and restarting: ~3s
      • implementation
      • API contract changes
  • contract-first API approach
  • resource-saving in any way
    • server
      • binary ~4MB
      • memory ~3MB
      • high-performance native application
    • client
      • packaged ~90kB
      • high-performance reactive framework

Support matrix

  • primarily tested on MacOS, the setup should also work for Linux
  • as the setup is using a bash script it will not run on Windows natively, but maybe on WSL
Support Client Server
Linux yes yes
MacOS yes yes
Windows unknown yes

About

Showcasing minimalistic full-stack project using gRPC with a Rust backend and a Browser frontend.


Languages

Language:Rust 47.9%Language:TypeScript 40.7%Language:Shell 5.0%Language:HTML 4.5%Language:JavaScript 1.9%