Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 598 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 598 Bytes

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)