https://github.com/andrewjbateman/next-graphql-prisma
:clipboard: A Next.js React app using Apollo GraphQL to get data from a Prism database.
https://github.com/andrewjbateman/next-graphql-prisma
graphql graphql-client incomplete nextjs prisma
Last synced: 2 months ago
JSON representation
:clipboard: A Next.js React app using Apollo GraphQL to get data from a Prism database.
- Host: GitHub
- URL: https://github.com/andrewjbateman/next-graphql-prisma
- Owner: AndrewJBateman
- Created: 2021-02-08T21:28:43.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-24T15:48:49.000Z (about 5 years ago)
- Last Synced: 2024-12-27T02:44:57.254Z (over 1 year ago)
- Topics: graphql, graphql-client, incomplete, nextjs, prisma
- Language: TypeScript
- Homepage:
- Size: 635 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :zap: Next GraphQL Prism
* A Next.js React app using Apollo GraphQL to get data from a Prism database.
* **Note:** to open web links in a new window use: _ctrl+click on link_




## :page_facing_up: Table of contents
* [:zap: Next API Data](#zap-next-api-data)
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General Info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:clipboard: Status & To-Do List](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)
## :books: General Info
* Displays data from a Prism database.
* 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.
## :camera: Screenshots
.
## :signal_strength: Technologies
* [Node.js v14](https://nodejs.org/) javascript runtime using the [Chrome V8 engine](https://v8.dev/).
* [React v17](https://reactjs.org/) Javascript library.
* [GraphQL v15](https://github.com/graphql/graphql-js)
* [Apollo v2](https://www.apollographql.com/) GraphQL implementation data graph layer
* [Next v10](https://nextjs.org/) minimalist framework for rendering react apps on the server.
* [Next with Apollo v5](https://www.npmjs.com/package/next-with-apollo) to save coding time
* [Apollo Client v2](https://www.npmjs.com/package/apollo-client) caching GraphQL client to UI components can fetch data via GraphQL. More documentation [here](https://apollographql.com/docs/react/).
* [Apollo Server Micro](https://www.npmjs.com/package/apollo-server-micro) Micro integration for the Apollo community GraphQL Server.
* [@prisma/client](https://www.npmjs.com/package/@prisma/client) auto-generated query builder that enables type-safe database access
## :floppy_disk: Setup
* Prisma required a setup that was not shown in the tutorial - see [Sitepoint tutorial](https://www.sitepoint.com/nextjs-prisma-twitter-clone/) for how to initialise Prisma - without it the app will not work
* `npm run dev` runs the app in the development mode. Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
* `npm run build` builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.
## :computer: Code Examples
* tba
```tsx
```
## :clipboard: Status & To-Do List
* Status: In work
* To-Do: Start up database then complete
## :clap: Inspiration
* [Adam Richardson: Build a GraphQL API in Next.js API route - Next.js, Prisma, GraphQL Business Card Application.](https://www.youtube.com/watch?v=Ywk25VRKkQo&t=748s)
## :file_folder: License
* N/A
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com