{"id":19683903,"url":"https://github.com/prisma/accelerate-nextjs-starter","last_synced_at":"2025-05-06T22:22:22.744Z","repository":{"id":194239771,"uuid":"690241377","full_name":"prisma/accelerate-nextjs-starter","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T13:32:27.000Z","size":46952,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-30T21:57:04.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-11T20:11:55.000Z","updated_at":"2025-01-04T01:25:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"296716f4-2d72-4a7f-b38c-fab34e996af9","html_url":"https://github.com/prisma/accelerate-nextjs-starter","commit_stats":null,"previous_names":["prisma/accelerate-nextjs-starter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Faccelerate-nextjs-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Faccelerate-nextjs-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Faccelerate-nextjs-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Faccelerate-nextjs-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/accelerate-nextjs-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252777365,"owners_count":21802590,"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-11-11T18:16:01.708Z","updated_at":"2025-05-06T22:22:22.726Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Accelerate Next.js Starter Project\n\n![Demo](./demo.gif)\n\nWelcome to the Accelerate Next.js Starter Project! This project showcases how to integrate Prisma ORM with Prisma Accelerate in a Next.js application.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fprisma%2Faccelerate-nextjs-starter\u0026env=DATABASE_URL,DIRECT_URL,NEXT_PUBLIC_URL)\n\nIt also [demonstrates](./app/api/route.ts#L15-46) every available caching strategy in Accelerate, along with a query that utilizes only connection pooling without any caching enabled.\n\n\u003e To learn more about cache strategies in Accelerate, visit our [docs](https://www.prisma.io/docs/data-platform/accelerate/concepts#cache-strategies).\n\n## Prerequisites\n\nBefore you begin, ensure you have the following prerequisites:\n\n- Obtain an Accelerate API key from [Prisma Data Platform](https://pris.ly/pdp).\n- Create a `.env` file in the project root directory with the following content:\n\n```bash\n# Accelerate connection string\nDATABASE_URL=\"prisma://accelerate.prisma-data.net/?api_key=ACCELERATE_API_KEY\"\n\n# To run migrations\nDIRECT_URL=\"postgresql://username:password@host:5432/database_name\"\n\nNEXT_PUBLIC_URL=\"http://localhost:3000\"\n```\n\n## Getting Started\n\nTo get started with this project, follow these steps:\n\n1. Install project dependencies:\n\n```bash\nnpm install\n```\n\n2. Set up Prisma by running migrations and generating a PrismaClient for edge functions:\n\n```bash\nnpx prisma migrate dev\nnpx prisma generate --no-engine\n```\n\n3. Start the application:\n\n```bash\nnpm run dev\n```\n\nThat's it! You're now ready to explore and experiment with Accelerate in your Next.js project. Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Faccelerate-nextjs-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Faccelerate-nextjs-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Faccelerate-nextjs-starter/lists"}