hygraph / example_01_nextjs_apollo

Demo project using Next.js, Apollo and GraphCMS

Home Page:https://graphcms.com/blog/graphcms-example-using-next-js-and-apollo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server-side rendered App with Next.js, Apollo and GraphCMS

🚀 Live Demo

This example shows how to build a small music blog with Next.js, Apollo and GraphCMS.

To connect your app you have to setup a new GraphCMS project and create the required content models as described here.

To get this information, log into GraphCMS and go to your project settings.

Screenshot

Copy the Endpoint URL for the Simple Endpoint from the ENDPOINTS section. Insert the URL into the variable GRAPHCMS_API in the file lib/initClient.

Installation

npm install

Starting

npm run start

Deployment

Install now:

npm install -g now

Deploy the app:

now

About

Demo project using Next.js, Apollo and GraphCMS

https://graphcms.com/blog/graphcms-example-using-next-js-and-apollo


Languages

Language:JavaScript 100.0%