Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 1.17 KB

README.md

File metadata and controls

69 lines (44 loc) · 1.17 KB

GraphQL POC

Installation

Install Contentful CLI

Get started here

Authenticate to Contentful

contentful login

Create a new space

contentful space create --name GraphQL POC

List all spaces

contentful space list

Import Content model and some entries. We will setup some content types and entries from contentful-export.json located in the root of this repository.

Replace YOUR_SPACE_ID with your space id.

contentful space import --space-id YOUR_SPACE_ID --content-file ./contentful-export.json

Setup

Create a new .env file in the root of this repository. Add Contentful space environments to this. .env found under Settings > API keys. Look at .env.example for example configuration.

Install npm dependencies

yarn install

Run development server

yarn start

Build site ready for production

yarn build

Deploy to Surge.sh

Get started here

yarn deploy

or manually

surge public/ --domain https://graphql-poc.surge.sh