跳至主内容
版本:9.x

示例应用

非官方测试版翻译

本页面由 PageTurner AI 翻译(测试版)。未经项目官方认可。 发现错误? 报告问题 →

你可以克隆 tRPC 仓库并在本地运行示例,或通过下方 CodeSandbox 链接在线体验。

以下是一些示例应用:

DescriptionURLLinks

Recommended:
Next.js starter with Prisma, E2E testing, & ESLint



Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
nextjs.trpc.io

zART-stack example (zero-API, TypeScript, React).


Monorepo setup with React Native, Next.js, & Prisma



Quick start with git clone
git clone git@github.com:KATT/zart.git
n/a

Next.js starter with Prisma, E2E testing, ESLint, Auth using next-auth, WebSockets, & Subscription support



Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
websockets.trpc.io

Next.js TodoMVC-example with SSG & Prisma.



Quick start with create-next-app
yarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
todomvc.trpc.io
Vanilla standalone server & procedure calls with node.jsn/a
Express server & procedure calls with node.js.n/a
Fastify server with WebSocket & procedure calls with node.js.n/a
SvelteKit Example Application with Prisma.n/a

Express server with tRPC Shield + Prisma



Quick start with create-trpc-appx
n/a