This is an example project to show an approach to integrate Next, Apollo, and Contentful.
The project is a Next app that gets Contentful data using Apollo and GraphQL queries. The project has two pages:
- Homepage: shows a list of articles
- Article detail: Each article detail page
First, install the dependecies:
yarn install
then run the project
yarn dev
Open http://localhost:3000 with your browser to see the result.
This example is based on an article that explains a step by step on how to get to the final implementation.
You can read the article here: A brief introduction to a Headless CMS App: Next.js, Apollo, and Contentful with GraphQL..