robbyahnmsd / gatsby-starter-silverstripe

A starter for Gatsby integrations that use Silverstripe CMS as a data source

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gatsby starter for Silverstripe CMS

Before you start

Make sure you have the silverstripe-gatsby module installed on your Silverstripe backend.

🚀 Quick start

  1. Create a Gatsby site.

    Use the Gatsby CLI to create a new site, specifying the default starter.

    # create a new Gatsby site using the Silverstripe CMS starter
    gatsby new my-silverstripe-starter https://github.com/silverstripe/gatsby-starter-silverstripe
  2. Configure

yarn setup
  1. Start me up

Navigate into your new site’s directory and start it up.

cd my-silverstripe-starter/
yarn develop
  1. Open the source code and start editing!

    You should now see your Silverstripe CMS website in a default theme 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-silverstripe-starter directory in your code editor of choice and edit src/pages/index.js. Save your changes and the browser will update in real time!

Advanced usage

See the gatsby-source-silverstripe repository for further documentation on customising your Silverstripe + Gatsby project.

About

A starter for Gatsby integrations that use Silverstripe CMS as a data source

License:BSD Zero Clause License


Languages

Language:SCSS 75.3%Language:TypeScript 16.3%Language:JavaScript 8.4%