An open API service indexing awesome lists of open source software.

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.

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_

![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/next-graphql-prism?style=plastic)
![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/next-graphql-prism?style=plastic)
![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/next-graphql-prism?style=plastic)
![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/next-graphql-prism?style=plastic)

## :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

![Example screenshot](./imgs/list.png).

## :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