Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Woocommerce as backend & ReactJS as frontend?

Is it possible to use woocommerce as backend & ReactJS as frontend? I am new to creating online shops, and would like to write a frontend with ReactJS, but I am not sure what options there are for the backend.

I do know I can use Wordpress as a backend. Can I also install woocommerce and use it as a backend on top?

like image 592
userjmillohara Avatar asked Jan 17 '18 17:01

userjmillohara


1 Answers

WooCommerce provides REST API which you can use to power your frontend. However for that you need to provide consumer key and consumer secret to your frontend, which is not a good idea security-wise, so it is ideal to create a API proxy and make the frontend communicate with the proxy which then routes the calls to the actual API using the key and secret.

like image 69
Aviartz Avatar answered Sep 22 '22 09:09

Aviartz