{"id":17241180,"url":"https://github.com/sinoon/nextjs-prisma","last_synced_at":"2025-06-25T07:34:08.573Z","repository":{"id":81525114,"uuid":"509979113","full_name":"sinoon/nextjs-prisma","owner":"sinoon","description":null,"archived":false,"fork":false,"pushed_at":"2022-07-03T09:36:09.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-11T00:06:56.849Z","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/sinoon.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-07-03T09:36:06.000Z","updated_at":"2022-07-03T09:36:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2b3d589-33f0-4059-8137-079f7197be0e","html_url":"https://github.com/sinoon/nextjs-prisma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sinoon/nextjs-prisma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoon%2Fnextjs-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoon%2Fnextjs-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoon%2Fnextjs-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoon%2Fnextjs-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinoon","download_url":"https://codeload.github.com/sinoon/nextjs-prisma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinoon%2Fnextjs-prisma/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261827403,"owners_count":23215741,"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-15T06:07:58.632Z","updated_at":"2025-06-25T07:34:08.565Z","avatar_url":"https://github.com/sinoon.png","language":"TypeScript","readme":"---\ntitle: NextJS Prisma\ndescription: A NextJS app using Prisma with a PostgreSQL database\ntags:\n  - next\n  - prisma\n  - postgresql\n  - typescript\n---\n\n# NextJS Prisma Example\n\nThis example is a [NextJS](https://nextjs.org/) todo app that uses\n[Prisma](https://www.prisma.io/) to store todos in Postgres.\n\n[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Frailwayapp%2Fexamples%2Ftree%2Fmaster%2Fexamples%2Fnextjs-prisma\u0026plugins=postgresql)\n\n## ✨ Features\n\n- Prisma\n- NextJS\n- Postgres\n- TypeScript\n\n## 💁‍♀️ How to use\n\n- [Provision a Postgres container on Railway](https://dev.new)\n- Connect to your Railway project with `railway link`\n- Migrate the database `railway run yarn migrate:dev`\n- Run the NextJS app `railway run yarn dev`\n\n## 📝 Notes\n\nThis app is a simple todo list where the data is persisted to Postgres. [Prisma\nmigrations](https://www.prisma.io/docs/concepts/components/prisma-migrate#prisma-migrate)\ncan be created with `railway run yarn migrate:dev` and deployed with `railway run yarn migrate:deploy`. The Prisma client can be regenerated with\n`yarn generate`.\n\n[swr](https://swr.vercel.app/) is used to fetch data on the client and perform optimistic updates.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinoon%2Fnextjs-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinoon%2Fnextjs-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinoon%2Fnextjs-prisma/lists"}