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
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.
yarn install
yarn start
yarn build
Get started here
yarn deploy
or manually
surge public/ --domain https://graphql-poc.surge.sh