postlight / headless-wp-starter

🔪 WordPress + React Starter Kit: Spin up a WordPress-powered React app in one step
https://archive.postlight.com/labs/wordpress-react-starter-kit
GNU General Public License v2.0
4.47k stars 652 forks source link

Is it good for Woocommerce ? #214

Closed sebastianturbiarz closed 5 years ago

sebastianturbiarz commented 5 years ago

Hey is it good for backend like WooCommerce? I would like to build my own theme with NextJS or Gatsby

patrykgaluszka commented 5 years ago

Hey, It's just a boilerplate theme for making wordpress with separate front-end layer and API communication between WP and react-based front-end. As far as I've investigated you need to register WooCommerce endpoints by your own (it's not a big deal) and somehow handle the payment. While WooCommerce gives you solutions or has dedicated plugins, your cannot handle payment via wordpress API. Then you need to use your payment service (ie. PayPal, platnosci24 ;)) API to make a payment and let Wordpress know that status of order has changed to paid. I'm not sure about Gatsby, it's a different approach than NextJS.