Building the Front-end for the JSON REST API-Powered Single Page Web App
read more

Building the Front-end for the JSON REST API-Powered Single Page Web App


In my last two articles I have discussed how to prepare your WordPress site to act as the backend for a JSON REST-API powered app using a separate, non-WordPress front-end, and I have illustrated how to use Node.js and Express to power that front-end.

This article will show you how to get content in and out of the basic HTML layout, and how to use the HTML5 history API to update URLs.

As I emphasized in the last article: using a node.js front-end provides a faster front-end experience, which is easier for non-WordPress developers to work with and provides complete separation of concerns for front-end templating.