A simple Vue blog template that displays posts from any WordPress REST API endpoint.
This is a simple Vue application that retrieves posts from a WordPress REST API endpoint. The application can be customized to suit individual needs, and contributions are encouraged to improve the application for everyone. The installation process involves defining important values through Node environment variables, and the application can be deployed locally or on a hosting platform like Netlify. The application also includes caching of AJAX requests for efficient loading of posts. Additionally, users can set a different endpoint via a URL parameter.
npm install in the root of the project to install dependencies..env.local file in the root of the project..env.local file:REST_ENDPOINT: The WordPress REST API endpoint from which data will be pulled.POSTS_PER_PAGE: The default number of posts per page that will be displayed.GA_TRACKING_ID: A Google Analytics tracking ID.REQUEST_CACHE_MAX: The maximum number of AJAX requests that will be cached in memory..env file or in your hosting platform’s dashboard.This Vue application allows users to retrieve posts from a WordPress REST API endpoint. It can be customized and contributed to for further improvements. The installation process involves setting environment variables, and the application can be deployed locally or on a hosting platform. Caching is implemented for efficient loading of posts, and users can set a different endpoint via a URL parameter.