Search code examples
wordpressreactjsreact-routersingle-page-applicationwp-api

SPA with content management


I would like to build Single Page Web Application (SPA) with React.js.

Application would need some Content Management System for back-end. I was thinking to use WordPress and their REST-API's but I don't know how to retrieve data from my wordpress installation.

Back-end and front-end would be in different domains so just building WP theme with React.js wouldn't work.

Basically, I don't know how to call and populate data from wordpress to my front-end.

I would need someone to point me to the right direction. And, maybe recommend easier CMS to use in this task.


Solution

  • Actually it is very easy to access your WordPress website data through HTTP REST API Here you have the full documentation on WordPress REST APi http://v2.wp-api.org/