- A Contentful Account
- Terminal Application
- Node.js >= 18.0.0
- NPM (should be installed with Node.js)
- Clone the Blog Starter Repo with the command
git clone https://github.com/contentful/starter-gatsby-blog.git
- Change into the directory with
cd starter-gatsby-blog/
- Run the command
npm install
- Through the Contentful Web App, create a new space called gatsby-blog
- Click into your new Space
- Look at the content model (it will be empty)
- Find and copy your Space ID
- Run the command
npm run setup
- Paste your space ID in response to the prompt
- Create a CMA token and paste in terminal
- Create an API key and copy your CDA token
- Past your CDA token in the terminal
- Check your content model (there should be a blog post and person content type)
- Start your dev server by running the command
npm run dev
- See your site by opening localhost:8000 in your browser
- Checkout GraphQL at http://localhost:8000/_graphql