ben-rogerson / server-communication-examples

A collection of examples for communicating with a backend server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server Communication Examples

This is a collection of examples for communicating with a backend server. Each frontend is basic Vite React website which can create, read, update, and delete information on the server backend.

Demo

Example list

  • GraphQL ✅
  • tRPC ✅
  • REST ✅
  • WebSocket ✅
  • gRPC (soon)
  • MQTT (soon)

Aims

  1. Compare different approaches for client to server communication
  2. Show how TypeScript types are shared from the server to the client
  3. Show how Zod improves validation of server request data

About

A collection of examples for communicating with a backend server.


Languages

Language:TypeScript 91.9%Language:CSS 4.9%Language:HTML 1.7%Language:JavaScript 1.5%