Sign inSign up

duffn/wordpress-wpgraphql-wpgatsby

By duffn

Updated almost 6 years ago

Image
0

1.2K

duffn/wordpress-wpgraphql-wpgatsby repository overview

Gatsby Headless WordPress Starter

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.

Installation

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.

Automatically
bash -c "$(curl https://raw.githubusercontent.com/duffn/gatsby-headless-wordpress-starter/main/install.sh)"
Manually

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

TODO

  • Test on Linux.
  • Test on Windows.
  • Allow option for MariaDB as a database.

License

MIT

Tag summary

Content type

Image

Digest

Size

179.5 MB

Last updated

almost 6 years ago

docker pull duffn/wordpress-wpgraphql-wpgatsby