AxePress Labs - Playground is an example Next.JS app that uses WPGraphQL and Faust.js to experiment with headless WordPress patterns.
- Add Block Theme Support
- Add Server Side Authentication (📢 WPEBuilders click here! )
- Node 16+
- WordPress 6.0+ with the following plugins installed and activated:
- A Next.JS app that uses Faust.js to fetch data WPGraphQL.
- TypeScript linting and hinting with
graphql-codegen
. (Note: there are still some type errors sostrict
is false in tsconfig.json for now). - ESLint rules configured for WordPress Coding Standards.
- Advanced developer logging of ApolloClient queries and mutations.
- WP Template Hierarchy support with Faust.js's
wp-templates
. - Site Editor support (experimental) for Headers, Footers, and content.
- A better
DefaultBlock
that doesn't rely ondangerouslySetInnerHTML
. - TailwindCSS for when the
globalStylesheet
and block styles aren't enough. - SEO support using Rank Math SEO and
next-seo
. - RSS Feeds ( in case any @wpengine DevRel peeps are looking 😜 ).
- PWA support with
next-pwa
. - External script support with
partytown
.
- Run
npm install
oryarn install
to install dependencies. - Copy
.env.example
to.env
and update the values to match your environment. (See Faust.js Getting started). - Copy the Block Theme
style.css
file to the project. (How to) - Update tailwind.config.js to match your theme's colors, and apply any overrides you need in
src/styles/overrides.css
. - Run
npm run dev
oryarn dev
to start the development server. (This will runyarn prepare
which generates the types from GraphQL). - Start developing!