WooCommerce Order POC
Requirements :
- You must have wordpress and woocommerce installed and restful api enabled on localhost
- You must have https enabled on apache 2 server https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04
- Add Header set Access-Control-Allow-Origin "*" to apache2 conf
- sudo service apache2 restart
Run app :
-
npm install
-
Add your consumer key and secret key in actions.js woo commerce initialisation (USER MUST HAVE READ/WRITE permission) var WooCommerce = new WooCommerceAPI({ ... consumerKey: 'ck_(YOUR CONSUMER KEY KEY)', consumerSecret: 'cs_(YOUR SECRET KEY KEY)', .... });
-
npm start