Live demo: https://blog66925.gatsbyjs.io/
-
Start developing.
Navigate into your new site’s directory and start it up.
cd blog/ gatsby develop
-
Set environment variables
GATSBY_FORMSPREE=__VALUE__ CONTENTFUL_SPACE_ID=VALUE=__VALUE__ CONTENTFUL_ACCESS_TOKEN=__VALUE__
for testing purpose, you can use these env values:
GATSBY_FORMSPREE=xjvjkela CONTENTFUL_SPACE_ID='1mwlvq26v004' CONTENTFUL_ACCESS_TOKEN='cKLxbgp0EsG9faN7-4bO9fxBaJyc24paltNUDYTojHk'
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.Open the
my-default-starter
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!