DEV Community

Discussion on: Vue3 + TS + Vue Query + Express + tRPC: setup example

Collapse
 
eneskaplan profile image
Enes Kaplan

Hey André, quick question as I'm a newbie to tRPC and couldn't find information on this elsewhere through a quick look. Can tRPC used as a contract between frontend and backend, if the backend is written in another language like .NET or Java Springboot?

Collapse
 
alousilva profile image
André Silva

Hi Enes! (Sorry for the delayed reply!)

So as far as I understood tRPC is meant to be used in JS based frameworks/libraries on both server and client sides (hence the "t" in tRPC, for TypeScript) and enforce correct contracts on both sides.

For other languages such as .NET or Java you may look up gRPC.