Kick off your project with this gatsby + contentful demo. You can have a look at this demo url: https://cape.netlify.com/
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site.
# create a new Gatsby site using this starter npx gatsby new your-project-name https://github.com/juhi-trivedi/cape.git
-
Start developing.
Navigate into your new siteβs directory and start it up.
cd your-project-name/ gatsby develop
-
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.
To run this starter, you need to add your own contentful credentials by creating .contentful.json in root directory & add your 'spaceId' & 'accessToken' as shown below:
{
"spaceId": "...",
"accessToken": "..."
}