{"id":16222922,"url":"https://github.com/michael/nextjs-prisma","last_synced_at":"2025-04-08T01:41:48.461Z","repository":{"id":43061846,"uuid":"472288645","full_name":"michael/nextjs-prisma","owner":"michael","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-21T11:25:01.000Z","size":52,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T01:46:01.660Z","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/michael.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}},"created_at":"2022-03-21T10:31:23.000Z","updated_at":"2023-07-25T14:55:39.000Z","dependencies_parsed_at":"2022-09-10T12:40:53.030Z","dependency_job_id":null,"html_url":"https://github.com/michael/nextjs-prisma","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fnextjs-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fnextjs-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fnextjs-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael%2Fnextjs-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael","download_url":"https://codeload.github.com/michael/nextjs-prisma/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247761052,"owners_count":20991533,"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-10T12:15:51.202Z","updated_at":"2025-04-08T01:41:48.433Z","avatar_url":"https://github.com/michael.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael%2Fnextjs-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael%2Fnextjs-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael%2Fnextjs-prisma/lists"}