/vue-wp-restapi

Basic example of using Vue.js with GET request from the WP REST API

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

vue-wp-restapi

A Vue.js WordPress dealio

Just a little testing out Vue with the WordPress Rest API. If you wanted to try it out you could just change the baseUrl variable to your own WordPress site url in:

src/components/PostList.vue

wp-api-vue

The posts are not styled or parsed out, just gets a messy blob of the data.

Build Setup

# Update baseUrl
    var baseUrl = "yourWordPressUrl";

# install dependencies
    npm i

# serve with hot reload at localhost:8080
    npm run dev