{"id":18614906,"url":"https://github.com/andrewjbateman/next-prisma-data","last_synced_at":"2026-04-13T09:31:37.360Z","repository":{"id":96860740,"uuid":"379971748","full_name":"AndrewJBateman/next-prisma-data","owner":"AndrewJBateman","description":":clipboard: Next.js React used with a Prisma database to display a simple data table","archived":false,"fork":false,"pushed_at":"2021-06-24T16:18:13.000Z","size":252,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-17T01:34:28.226Z","etag":null,"topics":["nextjs","prisma","prisma-cli","prisma-client","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/AndrewJBateman.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}},"created_at":"2021-06-24T15:31:23.000Z","updated_at":"2021-06-24T16:18:15.000Z","dependencies_parsed_at":"2023-03-30T11:35:52.852Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/next-prisma-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/next-prisma-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-prisma-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-prisma-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-prisma-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-prisma-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/next-prisma-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-prisma-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31746294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","prisma","prisma-cli","prisma-client","react"],"created_at":"2024-11-07T03:27:24.017Z","updated_at":"2026-04-13T09:31:37.344Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Next Prisma Data\n\n* Next.js React used with a Prisma database to display a simple data table\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/next-prisma-data?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/next-prisma-data?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/next-prisma-data?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/next-prisma-data?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Technologies](#technologies)\n* [Setup](#setup)\n* [Features](#features)\n* [Status](#status)\n* [Inspiration](#inspiration)\n* [Contact](#contact)\n\n## :books: General info\n\n* Full-stack app with Next React frontend and Prisma as the backend\n* There is not a lot of styling - most aplied to the data entry form\n\n## :camera: Screenshots\n\n![Frontend screenshot](./imgs/list.png)\n\n## :signal_strength: Technologies\n\n* [Node.js v14](https://nodejs.org/) javascript runtime using the [Chrome V8 engine](https://v8.dev/).\n* [React v17](https://reactjs.org/) Javascript library.\n* [Next v10](https://nextjs.org/) minimalist framework for rendering react apps on the server.\n* [Next with Apollo v5](https://www.npmjs.com/package/next-with-apollo) to save coding time\n* [@prisma/client](https://www.npmjs.com/package/@prisma/client) auto-generated query builder that enables type-safe database access\n* [Prisma Studio](https://www.prisma.io/studio)\n\n## :floppy_disk: Setup\n\n* Install dependencies using `npm i`\n* `npm run dev` runs the Next app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n* `npx prisma studio` opens up a useful browser CLI for the Prisma database on `http://localhost:5555/`\n\n## :wrench: Testing\n\n* N/A\n\n## :computer: Code Examples\n\n* `pages/index.ts` async function to fetch all data from the Prisma database\n\n```javascript\nexport async function getServerSideProps() {\n\tconst movies = await prisma.movie.findMany();\n\n\treturn {\n\t\tprops: {\n\t\t\tdata: movies,\n\t\t},\n\t};\n}\n```\n\n## :cool: Features - Frontend\n\n* The Prisma CLI browser interface is quite cool\n\n## :clipboard: Status, Testing \u0026 To-Do List\n\n* Status: Working\n* To-Do: Change use of item.id as key in React list of films as it is not best practise. Could be developed with styled cards etc. on frontend to display data\n\n## :clap: Inspiration/General Tools\n\n* [Watch and Learn: Let's Checkout... Prisma \u0026 Next.js](https://www.youtube.com/watch?v=9qJKmesjTd8)\n\n## :file_folder: License\n\n* N/A\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-prisma-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fnext-prisma-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-prisma-data/lists"}