gatsby-starter-contentstack

1.0.1 • Public • Published

CMS Gatsby Template

A starter project for building a websites using Contentstack and Gatsby

However, the code should be pretty hotswapable for any other Gatsby Plugin Headless CMS

Prerequisites

  • Install nodejs on your system.
  • Install Gatsby CLI.

npm install -g gatsby-cli

Clone the repo

Clone the following repo. It contains all the required dependencies.

git clone https://github.com/matthewcm/CMS_Gatsby_Template.git

Install dependencies

Go to the CMS_Gatsby_Template folder, and run the following:

  • cd CMS_Gatsby_Template
  • yarn

This downloads the required files and initializes the site.

Update Contentstack secrets

Copy the .env.sample file to .env.development and .env.production and update with your Contentstack details, including your API key and access token.

Gatsby Plugin uses the soon to be depreciated access token.

It should end up looking something like:

CONTENTSTACK_API_KEY='hunter2'
CONTENTSTACK_ACCESS_TOKEN='hunter2token'
CONTENTSTACK_ENVIRONMENT='development' # or production, staging, etc.

Screenshot

/gatsby-starter-contentstack/

    Package Sidebar

    Install

    npm i gatsby-starter-contentstack

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    67.4 kB

    Total Files

    61

    Last publish

    Collaborators

    • matthewcm