This is the fastest and easiest way to get a development environment up and running with headless WordPress and Gatsby.
This includes:
Note: This starter is meant for local development and evaluation purposes only.
You must have git, Docker and docker-compose installed on your machine.
This has been tested on macOS and it should work on Linux. I don't know about Windows.
Run either the automatic or manual installation below and visit http://localhost:8000 for Gatsby and http://localhost:8001/wp-admin/ for WordPress.
The default WordPress admin credentials are admin and secret.
bash -c "$(curl https://raw.githubusercontent.com/duffn/gatsby-headless-wordpress-starter/main/install.sh)"
It's a good idea to download and review unknown scripts from the internet. So, you may want to clone this repository and run the script instead.
wget https://raw.githubusercontent.com/duffn/gatsby-headless-wordpress-starter/main/install.sh
# Review the script here.
bash install.sh
The script doesn't do anything besides check for required dependencies and run docker-compose, so you can just as well clone the repository and run docker-compose yourself.
git clone [email protected]/duffn/gatsby-headless-wordpress-starter
cd gatsby-headless-wordpress-starter
docker-compose up
Content type
Image
Digest
Size
44.6 MB
Last updated
almost 6 years ago
docker pull duffn/wp-cli-gatsby