Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amodinho/og-box-poc
Get nimble and organic DIY vegetable gardens. 🥦 [POC]
https://github.com/amodinho/og-box-poc
Last synced: about 1 month ago
JSON representation
Get nimble and organic DIY vegetable gardens. 🥦 [POC]
- Host: GitHub
- URL: https://github.com/amodinho/og-box-poc
- Owner: AmoDinho
- Created: 2021-04-07T20:37:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-08T20:48:46.000Z (almost 4 years ago)
- Last Synced: 2024-11-04T09:15:43.482Z (3 months ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Apollo Example
[Apollo](https://www.apollographql.com/client/) is a GraphQL client that allows you to easily query the exact data you need from a GraphQL server. In addition to fetching and mutating data, Apollo analyzes your queries and their results to construct a client-side cache of your data, which is kept up to date as further queries and mutations are run.
In this simple example, we integrate Apollo seamlessly with [Next.js data fetching methods](https://nextjs.org/docs/basic-features/data-fetching) to fetch queries in the server and hydrate them in the browser.
This example relies on [Prisma + Nexus](https://github.com/prisma-labs/nextjs-graphql-api-examples) for its GraphQL backend.
## Demo
[https://next-with-apollo.now.sh](https://next-with-apollo.now.sh)
## Deploy your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-apollo&project-name=with-apollo&repository-name=with-apollo)
## How to use
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example with-apollo with-apollo-app
# or
yarn create next-app --example with-apollo with-apollo-app
```Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).