跳至主要內容
版本:11.x

範例應用程式

註解

雖然可以使用任何列出的套件管理員來安裝範例,但所有範例都已設定為使用 pnpm 作為指令碼執行器,因此請務必先安裝它。

如果您想要使用 npmyarn,請務必在產生的範例中更新相關的 package.json scripts 項目。


bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter

create-t3-turbo - 使用 Expo 和 Turborepo 的 T3 堆疊

bash
git clone git@github.com:t3-oss/create-t3-turbo.git
bash
git clone git@github.com:t3-oss/create-t3-turbo.git

Next.js starter,包含 Prisma、E2E 測試、ESLint、next-auth、WebSockets 和訂閱

bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter

Next.js Todo MVC 範例,包含 SSG 和 Prisma

bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
bash
npx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo

Node.js 中的極簡(Hello world)伺服器和用戶端


純粹的獨立伺服器和 Node.js 程序呼叫


Express 伺服器和 Node.js 程序呼叫


Fastify 伺服器,包含 WebSockets 和 Node.js 程序呼叫


SvelteKit 與 Prisma


使用 Express 的以太坊驗證登入

bash
git clone git@github.com:codingwithmanny/trpc-siwe-monorepo.git
bash
git clone git@github.com:codingwithmanny/trpc-siwe-monorepo.git

分離後端和前端儲存庫