About this training
Last updated
Was this helpful?
Last updated
Was this helpful?
A training workshop by .
This repo will allow you to get the codebase to build a new Gatsby website which has been configured to pull its content from Drupal. Both Gatsby and Drupal run locally.
macOS 10.13 or later
Windows 10 Pro+ or equivalent (eg Windows 10 Enterprise) with Hyper-V running
Linux with kernel version 4.x or higher
Docker - or
Lando - or
NVM
NodeJS & NPM
Instructions for installing NVM, Node & NPM on or .
You can clone or download the repo anywhere in your computer (i.e. Sites, Downloads, Documents, Desktop, etc.)
Before you can run gatsby commands like gatsby develop
, you need to install the Gatsby CLI globally.
Open your command line tool like Terminal (macOs), or PowerShell (Windows)
Run the following command:
After cloning the repo, cd into the newly created directory:
NOTE: This is the default directory generated by cloning the repo. If you changed the directory name when cloning the repo, cd into that directory instead.
This will build your Docker containers needed to run Gatsby and Drupal. NOTE: Docker needs to be running before running lando start
.
Since Gatsby pulls data from Drupal, Drupal needs to be running by completing the previous step first.
If you get errors, you can try running: nvm install
then nvm use
. This will use the version of node specified inside .nvmrc
This will install all of Gatsby/node dependencies.
This will start Gatsby which should immediately connect to Drupal to pull all content.
Your credentials are: username: admin
, password: admin