Overview
The WP REST Theme is a skeleton theme that utilizes the WordPress REST API and Vue.js to create a single page application. Its purpose is to showcase how to build a front-end site using Vue.js while fetching data from the backend through the WordPress REST API. The theme ensures that SEO is not compromised in the process.
Features
- Powered by WordPress REST API and Vue.js
- Demonstrates the creation of a single page application using Vue.js
- Fetches data from the backend through the WordPress REST API
- Maintains SEO performance
Installation
- Install the WordPress REST API plugin (v2) if not already installed.
- Download the WP REST Theme and install it on your WordPress site as you would with any other theme.
- Customize the theme’s Vue.js specific code, which can be found in the rest-theme/src folder.
- While developing, run the following command from the theme root to build the dist/build.js script:
build_script_command
- Before deploying, run the following command from the theme root to build the dist/build.js script:
build_script_command
Summary
The WP REST Theme is designed to demonstrate how to use Vue.js and the WordPress REST API to create a single page application without compromising SEO. It provides an easy-to-install skeleton theme that can be customized to meet your specific needs.