Skip to content

Plugin that simplifies connecting a WooCommerce store to Spiff

Notifications You must be signed in to change notification settings

spiffdev/woocommerce-plugin

Repository files navigation

WooCommerce Plugin

This is the development repository of Spiff's WooCommerce plugin, Spiff Connect.

The spiff-connect folder contains all the files of the plugin except for assets which are included at build time.

To run locally

  • Copy a build of api.js into spiff-connect/public/js/.
  • Set SPIFF_API_BASE in spiff-connect.php to the appropriate value.
  • Run docker-compose up.
  • Visit localhost:8888.

To run tests

  • Install the project dependencies with composer.
  • Run ./vendor/bin/phpunit tests. (If using docker: docker run -v $(pwd):/app --rm phpunit/phpunit:latest tests)