

Postlight's Headless WordPress + React Starter Kit is an automated toolset that will spin up three things:
- A WordPress backend that serves its data via the WP REST API and GraphQL.
- A sample React frontend powered by the WP GraphQL API, which supports posts, pages, categories, menus, search, and user sign-in.
- Another sample server-side rendered React frontend using Next.js powered by the WP REST API.
You can read all about it in this handy introduction.
What's inside:
- An automated installer which bootstraps a core WordPress installation that provides an established, stable REST API.
- A plugin which exposes a newer, in-progress GraphQL API for WordPress.
- The WordPress plugins you need to set up custom post types and custom fields (Advanced Custom Fields and Custom Post Type UI).
- Plugins which expose those custom fields and WordPress menus in the WP REST API (ACF to WP API and WP-REST-API V2 Menus).
- JWT authentication plugins: JWT WP REST and JWT WP GraphQL.
- All the starter WordPress theme code and settings headless requires, including pretty permalinks, CORS
Allow-Origin headers, and useful logging functions for easy debugging.
- A mechanism for easily importing data from an existing WordPress installation anywhere on the web using WP Migrate DB Pro and its accompanying plugins (license required).
- A sample, starter frontend React app powered by GraphQL.
- Another sample, starter frontend React app, server-side rendered via Next.js, powered by the WP REST API.
- Docker containers and scripts to manage them, for easily running the frontend React apps and backend locally or deploying it to any hosting provider with Docker support.
Let's get started.
Install
Prerequisite: Before you begin, you need Docker installed. On Linux, you might need to install docker-compose separately.