Exempelapplikationer
Inofficiell Beta-översättning
Denna sida har översatts av PageTurner AI (beta). Inte officiellt godkänd av projektet. Hittade du ett fel? Rapportera problem →
notering
Även om det är möjligt att installera exemplen med valfritt pakethanterare, är alla exempel konfigurerade att använda pnpm som skriptkörning. Se därför till att installera det först.
Om du föredrar att använda npm eller yarn, kom ihåg att uppdatera relevanta scripts-poster i package.json för det genererade exemplet.
Next.js-starter med Prisma, E2E-testning och ESLint (Rekommenderas)
- npm
- yarn
- pnpm
- bun
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter
-
Exempel på deployment: nextjs.trpc.io
create-t3-turbo - T3 Stack med Expo och Turborepo
- git
bashgit clone git@github.com:t3-oss/create-t3-turbo.git
bashgit clone git@github.com:t3-oss/create-t3-turbo.git
Next.js-starter med Prisma, E2E-testning, ESLint, next-auth, WebSockets och prenumerationer
- npm
- yarn
- pnpm
- bun
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-websockets-starter trpc-prisma-websockets-starter
-
Exempel på deployment: websockets.trpc.io
Next.js Todo MVC-exempel med SSG och Prisma
- npm
- yarn
- pnpm
- bun
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
bashnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shpnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
shbunx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-todomvc trpc-todo
-
Exempel på deployment: todomvc.trpc.io
Minimal server och klient (Hello world) i Node.js
Fristående vanillaserver och Node.js-proceduranrop
Express-server och Node.js-proceduranrop
Fastify-server med WebSockets och Node.js-proceduranrop
SvelteKit med Prisma
Sign-In With Ethereum-autentisering med Express
- git
bashgit clone git@github.com:codingwithmanny/trpc-siwe-monorepo.git
bashgit clone git@github.com:codingwithmanny/trpc-siwe-monorepo.git