{"id":13714846,"url":"https://github.com/trpc/examples-next-prisma-starter","last_synced_at":"2025-05-15T01:09:11.834Z","repository":{"id":37055194,"uuid":"373524663","full_name":"trpc/examples-next-prisma-starter","owner":"trpc","description":"🚀 tRPC starter repo with E2E-testing","archived":false,"fork":false,"pushed_at":"2025-05-09T11:05:12.000Z","size":474,"stargazers_count":758,"open_issues_count":4,"forks_count":106,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-09T12:23:22.898Z","etag":null,"topics":["nextjs","starter","trpc","typescript"],"latest_commit_sha":null,"homepage":"https://nextjs.trpc.io/","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"KATT"}},"created_at":"2021-06-03T13:53:03.000Z","updated_at":"2025-05-09T11:05:16.000Z","dependencies_parsed_at":"2023-12-03T19:31:39.779Z","dependency_job_id":"d73ea80d-269b-46e9-bc8b-7dde0bd12045","html_url":"https://github.com/trpc/examples-next-prisma-starter","commit_stats":{"total_commits":508,"total_committers":44,"mean_commits":"11.545454545454545","dds":"0.24606299212598426","last_synced_commit":"cd13849e605a79653a038f5e8bc173eb8d8d56a2"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fexamples-next-prisma-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fexamples-next-prisma-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fexamples-next-prisma-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trpc%2Fexamples-next-prisma-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trpc","download_url":"https://codeload.github.com/trpc/examples-next-prisma-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254254042,"owners_count":22039792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","starter","trpc","typescript"],"created_at":"2024-08-03T00:00:50.960Z","updated_at":"2025-05-15T01:09:06.823Z","avatar_url":"https://github.com/trpc.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KATT"],"categories":["TypeScript",":space_invader: Projects Using Prisma"],"sub_categories":["Tutorials with [NestJS](https://nestjs.com/)"],"readme":"# Prisma + tRPC\n\n## Features\n\n- 🧙‍♂️ E2E typesafety with [tRPC](https://trpc.io)\n- ⚡ Full-stack React with Next.js\n- ⚡ Database with Prisma\n- ⚙️ VSCode extensions\n- 🎨 ESLint + Prettier\n- 💚 CI setup using GitHub Actions:\n  - ✅ E2E testing with [Playwright](https://playwright.dev/)\n  - ✅ Linting\n- 🔐 Validates your env vars on build and start\n\n## Setup\n\n```bash\npnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\npnpm\npnpm dx\n```\n\n### Requirements\n\n- Node \u003e= 18.0.0\n- Postgres\n\n## Development\n\n### Start project\n\n```bash\npnpm create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\npnpm\npnpm dx\n```\n\n### Commands\n\n```bash\npnpm build      # runs `prisma generate` + `prisma migrate` + `next build`\npnpm db-reset   # resets local db\npnpm dev        # starts next.js\npnpm dx         # starts postgres db + runs migrations + seeds + starts next.js\npnpm test-dev   # runs e2e tests on dev\npnpm test-start # runs e2e + unit tests\npnpm test-unit  # runs normal Vitest unit tests\npnpm test-e2e   # runs e2e tests\n```\n\n## Deployment\n\n### Using [Render](https://render.com/)\n\nThe project contains a [`render.yaml`](./render.yaml) [_\"Blueprint\"_](https://render.com/docs/blueprint-spec) which makes the project easily deployable on [Render](https://render.com/).\n\nGo to [dashboard.render.com/blueprints](https://dashboard.render.com/blueprints) and connect to this Blueprint and see how the app and database automatically gets deployed.\n\n## Files of note\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003ePath\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./prisma/schema.prisma\"\u003e\u003ccode\u003e./prisma/schema.prisma\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003ePrisma schema\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./src/pages/api/trpc/[trpc].ts\"\u003e\u003ccode\u003e./src/pages/api/trpc/[trpc].ts\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003etRPC response handler\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e\u003ca href=\"./src/server/routers\"\u003e\u003ccode\u003e./src/server/routers\u003c/code\u003e\u003c/a\u003e\u003c/td\u003e\n      \u003ctd\u003eYour app's different tRPC-routers\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n---\n\nCreated by [@alexdotjs](https://twitter.com/alexdotjs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrpc%2Fexamples-next-prisma-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrpc%2Fexamples-next-prisma-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrpc%2Fexamples-next-prisma-starter/lists"}