项目作者: stackrob2

项目描述 :
Jamstack site created with Stackbit
高级语言: JavaScript
项目地址: git://github.com/stackrob2/purple-spruce.git
创建时间: 2021-01-11T09:06:29Z
项目社区:https://github.com/stackrob2/purple-spruce

开源协议:Other

下载


✨ purple-spruce ✨

This is a Gatsby site using Sanity 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:

    1. 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):

    1. export STACKBIT_API_KEY={stackbit_api_key}
  5. Run the following command to fetch the content from Sanity:

    1. npx @stackbit/stackbit-pull --stackbit-pull-api-url=https://9b85b6819ad2.ngrok.io/pull/5ffc14df341b1e6ff555883b
  6. [Optional] Run Sanity Studio locally: install sanity-cli npm install -g @sanity/cli, navigate to the /studio directory, and run sanity install and sanity start.
    You may be required to login with the Sanity CLI.

  7. Start the Gatsby local development server:

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

  9. 🎉

Editing Content

To start editing your site, you can use the Sanity interface at https://purple-spruce-c14df.sanity.studio/.

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-01-11T09:06:27.587Z by Stackbit version 0.3.42.