{"id":18614907,"url":"https://github.com/andrewjbateman/next-graphql-data","last_synced_at":"2026-04-10T11:32:57.673Z","repository":{"id":96860734,"uuid":"477857657","full_name":"AndrewJBateman/next-graphql-data","owner":"AndrewJBateman","description":":clipboard: A Next.js React app using GraphQL \u0026 Apollo-Server-Micro to get data from a JSON file.","archived":false,"fork":false,"pushed_at":"2023-03-12T21:08:19.000Z","size":218,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-20T23:40:53.389Z","etag":null,"topics":["apollo-server-micro","css3","graphql","html5","javascript","next","nextjs","react","typescript"],"latest_commit_sha":null,"homepage":"","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/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":"2022-04-04T20:12:03.000Z","updated_at":"2022-04-06T13:34:55.000Z","dependencies_parsed_at":"2023-03-30T11:35:28.392Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/next-graphql-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndrewJBateman/next-graphql-data","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-graphql-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-graphql-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-graphql-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-graphql-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/next-graphql-data/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Fnext-graphql-data/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31641115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: 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":["apollo-server-micro","css3","graphql","html5","javascript","next","nextjs","react","typescript"],"created_at":"2024-11-07T03:27:24.252Z","updated_at":"2026-04-10T11:32:57.649Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :zap: Next GraphQL Data\n\n* A Next.js React app using GraphQL \u0026 Apollo-Server-Micro to get data from a JSON file.\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-graphql-data?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/next-graphql-data?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/next-graphql-data?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/next-graphql-data?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Next GraphQL Data](#zap-next-graphql-data)\n  * [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n  * [:books: General Info](#books-general-info)\n  * [:camera: Screenshots](#camera-screenshots)\n  * [:signal_strength: Technologies](#signal_strength-technologies)\n  * [:floppy_disk: Setup](#floppy_disk-setup)\n  * [:computer: Code Examples](#computer-code-examples)\n  * [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n  * [:clap: Inspiration](#clap-inspiration)\n  * [:file_folder: License](#file_folder-license)\n  * [:envelope: Contact](#envelope-contact)\n\n## :books: General Info\n\n* Displays data from the [xxGraphQL API](https://rickandmortyapi.com/graphql).\n* Next.js is for server-rendered react apps. It has automatic code splitting, simple page-based routing, built-in CSS support and hot reloading. Every component file in the pages folder is treated as a page.\n* Apollo Client used to fetch data using GraphQL.\n* GraphQL only return the data requested. Data only served from a single end-point. Lots of companies use it. GraphQL makes tawsks more complex and there are possible performance issues that would not occur using REST with a web cache.\n* [GraphQL Code Generator](https://www.graphql-code-generator.com/) to generate code from GraphQL schema - configured using a `condegen.yml` file\n* [Mantine AppShell](https://mantine.dev/core/app-shell/) used to provide a responsive shell for the app. with header and navbar\n\n## :camera: Screenshots\n\n![Example screenshot](./imgs/list.png).\n\n## :signal_strength: Technologies\n\n* [Node.js v16](https://nodejs.org/) javascript runtime using the [Chrome V8 engine](https://v8.dev/).\n* [React v18](https://reactjs.org/) Javascript library.\n* [GraphQL v15](https://github.com/graphql/graphql-js) API query language\n* [apollo-server-micro v3](https://yarnpkg.com/package/apollo-server-micro) Node.js GraphQL server for Micro\n* [Next v12](https://nextjs.org/) minimalist framework for rendering react apps on the server.\n* [TypeGraphQL v1](https://typegraphql.com/) modern framework for GraphQL API in Node.js\n* [Mantine v4](https://mantine.dev/) React components library\n* [tabler icons react v1](https://www.npmjs.com/package/tabler-icons-react), here is [the icon list](https://tabler-icons.io/)\n\n## :floppy_disk: Setup\n\n* `yarn install` to install dependencies\n* `yarn dev` runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\n## :computer: Code Examples\n\n* `_app.js` function to display app contents using Hydrate (DOM pre-built using Server-Side HTML Rendering)\n\n```javascript\nfunction MyApp({ Component, pageProps }) {\n  return (\n    \u003cQueryClientProvider client={queryClient}\u003e\n      \u003cHydrate state={pageProps.dehydratedState}\u003e\n        \u003cLayout\u003e\n          \u003cComponent {...pageProps} /\u003e\n        \u003c/Layout\u003e\n      \u003c/Hydrate\u003e\n    \u003c/QueryClientProvider\u003e\n  );\n}\n```\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: Working using JSON data file\n* To-Do: Replace JSON data with actual API data, Put nav at top\n\n## :clap: Inspiration\n\n* [Jack Herrington: NextJS + GraphQL Blueprint: Professional Grade Setup](https://www.youtube.com/watch?v=XzE-PzALyDc)\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-graphql-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Fnext-graphql-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Fnext-graphql-data/lists"}