Imoprtant: Full tutorial at https://www.drupal.org/docs/contributed-modules/gatsby-integration/2x-tutorial
-
Clone/fork this repo
Run "yarn install" to install dependencies.
-
Add environment variables.
Create a file named .env.development with the following values:
DRUPAL_URL=[Copy from Drupal] JSON_API_KEY=[Copy from API user] ENABLE_GATSBY_REFRESH_ENDPOINT=true
-
Test your Gatsby build.
npm run develop
-
Open the code and start customizing!
Your site is now running at http://localhost:8000!
Edit
src/pages/index.js
to see your site update in real-time!