Files
old-experiments/woocomerce-order/README.md

23 lines
728 B
Markdown
Raw Normal View History

2018-06-12 13:42:45 +02:00
## WooCommerce Order POC
2018-06-12 13:42:45 +02:00
Requirements :
2018-06-12 13:42:45 +02:00
- 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
2018-06-12 13:42:45 +02:00
Run app :
2018-06-12 13:42:45 +02:00
- 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({
...
2018-06-12 13:42:45 +02:00
consumerKey: 'ck_(YOUR CONSUMER KEY KEY)',
consumerSecret: 'cs_(YOUR SECRET KEY KEY)',
....
});
2018-06-12 13:42:45 +02:00
- npm start