{"id":15687270,"url":"https://github.com/katt/usesuspense-next-prisma-starter","last_synced_at":"2025-08-02T00:41:11.132Z","repository":{"id":140088210,"uuid":"562627320","full_name":"KATT/useSuspense-next-prisma-starter","owner":"KATT","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-07T23:00:46.000Z","size":68,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"next","last_synced_at":"2025-03-31T13:27:22.469Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://use-suspense.trpc.io","language":"TypeScript","has_issues":true,"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/KATT.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},"funding":{"github":"KATT"}},"created_at":"2022-11-06T22:41:17.000Z","updated_at":"2023-06-13T21:04:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f2696a9-68ad-40ac-8d6a-ca090375c68d","html_url":"https://github.com/KATT/useSuspense-next-prisma-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"trpc/examples-next-prisma-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2FuseSuspense-next-prisma-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2FuseSuspense-next-prisma-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2FuseSuspense-next-prisma-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KATT%2FuseSuspense-next-prisma-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KATT","download_url":"https://codeload.github.com/KATT/useSuspense-next-prisma-starter/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252945111,"owners_count":21829543,"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":[],"created_at":"2024-10-03T17:46:24.541Z","updated_at":"2025-05-07T19:40:42.107Z","avatar_url":"https://github.com/KATT.png","language":"TypeScript","funding_links":["https://github.com/sponsors/KATT"],"categories":[],"sub_categories":[],"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\n## Setup\n\n**yarn:**\n```bash\nyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\nyarn\nyarn dx\n```\n\n**npm:**\n\n```bash\nnpx create-next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\nyarn\nyarn dx\n```\n\n\n### Requirements\n\n- Node \u003e= 14\n- Postgres\n\n## Development\n\n### Start project\n\n```bash\nyarn create next-app --example https://github.com/trpc/trpc --example-path examples/next-prisma-starter trpc-prisma-starter\ncd trpc-prisma-starter\nyarn\nyarn dx\n```\n\n### Commands\n\n```bash\nyarn build      # runs `prisma generate` + `prisma migrate` + `next build`\nyarn db-reset   # resets local db\nyarn dev        # starts next.js\nyarn dx         # starts postgres db + runs migrations + seeds + starts next.js \nyarn test-dev   # runs e2e tests on dev\nyarn test-start # runs e2e tests on `next start` - build required before\nyarn test:unit  # runs normal jest unit tests\nyarn 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%2Fkatt%2Fusesuspense-next-prisma-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatt%2Fusesuspense-next-prisma-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatt%2Fusesuspense-next-prisma-starter/lists"}