/wp-rest-theme

A WordPress theme powered by the WordPress REST API and Vue.js

Primary LanguageVueMIT LicenseMIT

WP REST Theme

This is a simple skeleton theme powered by the WordPress REST API and Vue.js. The aim is to demonstrate how to create a single page application using Vue.js to power the front end site while fetching data from the backend via the WordPress REST API, all without sacrificing SEO.

Requirements

Usage

To use the theme on your WordPress site just install it like any other theme.

Customization

All of the Vue.js specific code is in the rest-theme/src folder. To build the dist/build.js script while developing run the following from the theme root:

npm run dev

To build the dist/build.js script before deploying run:

npm run build

Credits

Some of the libraries used in the making of this theme:

The WP REST Theme was created by Gilbert Pellegrom from Dev7studios. Released under the MIT license.