Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

hygraph/example_01_nextjs_apollo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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