https://github.com/nossbigg/react-ssr-graphql-poi-example
Barebones example of using POI/non-POI data using Next.js and GraphQL.
https://github.com/nossbigg/react-ssr-graphql-poi-example
graphql nextjs react server-side-rendering
Last synced: about 2 months ago
JSON representation
Barebones example of using POI/non-POI data using Next.js and GraphQL.
- Host: GitHub
- URL: https://github.com/nossbigg/react-ssr-graphql-poi-example
- Owner: nossbigg
- Created: 2020-07-30T08:58:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:50:36.000Z (over 2 years ago)
- Last Synced: 2025-02-05T23:53:02.847Z (4 months ago)
- Topics: graphql, nextjs, react, server-side-rendering
- Language: TypeScript
- Homepage:
- Size: 1.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-ssr-graphql-poi-example
This repository is a barebones example of how to retrieve and display Point-of-Interest (POI)/non-POI information using Next.js Server-Side Rendering and GraphQL, with an ideal developer experience
## Running Example Locally
**Commands to run locally**
- `yarn dev`: Starts both Next.js instance and GraphQL server instance
**Instances started**
- `http://localhost:3000/`: Next.js SSR Instance
- `http://localhost:3000/api/graphql`: GraphQL Instance## References
- [Basic Features: Data Fetching | Next.js](https://nextjs.org/docs/basic-features/data-fetching)
- [API Reference: apollo-server - Apollo Server - Apollo GraphQL Docs](https://www.apollographql.com/docs/apollo-server/api/apollo-server/)
- [Queries - Client (React) - Apollo GraphQL Docs](https://www.apollographql.com/docs/react/data/queries/)
- [Customizing the behavior of cached fields - Client (React) - Apollo GraphQL Docs](https://www.apollographql.com/docs/react/caching/cache-field-behavior/)