Skip to content

rodik-dev/staging-diy-gatsby-contentful-base

Repository files navigation

✨ staging-diy-gatsby-contentful-base ✨

This is a Gatsby site using Contentful as a CMS. It was created with Stackbit in under a minute.

You can create a site just like this one, or explore some variations. How about a different:

🎨  Look
✏️  CMS
⚙️  Static site generator

Develop Locally

  1. Install Node.js and npm

  2. Install npm dependencies:

     npm install
    
  3. Get the project's stackbit-api-key from the Stackbit dashboard

  4. Assign this key to the STACKBIT_API_KEY environment variable (replace {stackbit_api_key} with the actual key):

     export STACKBIT_API_KEY={stackbit_api_key}
    
  5. Fetch the content from Contentful:

     npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://stg-api.stackbit.com/pull/6080384ad124110016153609
    
  6. Start the Gatsby local development server:

     npm run develop
    
  7. Open http://localhost:8000/ in the browser

  8. 🎉

Editing Content

To start editing your site, you can use the Contentful interface at https://app.contentful.com/spaces/3rk80lnxhe1u.

Alternatively, you can use the free on-page editing experience provided by the Stackbit Studio.

Here's a few resources to get you started:

If you need a hand, make sure to check the Stackbit support page.

Colophon

Generated at 2021-04-21T14:36:19.506Z by Stackbit version 0.3.50.