百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
E

examples-next-prisma-starter

> 前端框架
开源

带有 E2E 测试的 tRPC 启动仓库

790 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

带有 E2E 测试的 tRPC 启动仓库

Prisma + tRPC

特性

  • ‍♂️ 通过 tRPC 实现端到端的类型安全
  • ⚡ 采用 React 和 Next.js 的全栈解决方案
  • ⚡ 使用 Prisma 的数据库
  • ⚙️ VSCode 扩展
  • ESLint + Prettier
  • 使用 GitHub Actions 进行 CI 设置:
  • ✅ 使用 Playwright 进行端到端测试
  • ✅ 临汾
  • 在构建和启动时验证您的环境变量

设置

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

要求

  • Node >= 18.0.0
  • Postgres

开发

开始项目

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

命令

bash
pnpm build      # runs `prisma generate` + `prisma migrate` + `next build`
pnpm db-reset   # resets local db
pnpm dev        # starts next.js
pnpm dx         # starts postgres db + runs migrations + seeds + starts next.js
pnpm test-dev   # runs e2e tests on dev
pnpm test-start # runs e2e + unit tests
pnpm test-unit  # runs normal Vitest unit tests
pnpm test-e2e   # runs e2e tests

部署

使用 Render

该项目包含 render.yaml 文件,使项目可以轻松在 Render 上部署。

前往 dashboard.render.com/blueprints 连接到此蓝图,查看应用程序和数据库如何自动部署。

Issues· 5 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptnextjsstartertrpctypescript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架