A basic Gatsby webpage that contains 4 static pages and a blog that pulls its content from a Contentful account.
This app was created to increase my React knowledge as well as learn Gatsby. It was made while following the Great Gatsby Bootcamp series by Mr Andrew Mead.
The website is a static website and will not update dynamically e.g. after a new blog poast is made. You will need to redeploy the website. See Adding new content below.
-
git clone https://github.com/martink-rsa/Basic-Gatsby-Webpage.git
-
npm install
-
Create a Contentful account, taking the example API keys given to the user.
-
Create a
.env
file in the root directory and add the following:WARNING: This file will contain sensitive info. Do not commit this file to a repo nor share it online
GATSBY_GRAPHQL_IDE=playground
CONTENTFUL_SPACE_ID=<YOUR CONTENTFUL ID HERE>
CONTENTFUL_ACCESS_TOKEN=<YOUR CONTENTFUL TOKEN HERE>
- Update content by making a new Contentful blog post
- Go to Netlify.com and select the app
- Click on Deploys
- Click 'Trigger deploy' dropdown and then 'Clear cache and deploy site`