Speaker Type: International
Topic Description: Creating a WooCommerce plugin is fun, but spinning up a WooCommerce testing environment isn’t! At least not, if you need to set it up manually. Setting up the WooCommerce testing environment manually requires the following steps:
- Creating a WordPress site.
- Installing and activating the WooCommerce plugin.
- Installing and activating the WooCommerce Blocks plugin.
- Installing and activating the Gutenberg plugin.
- Installing and activating the Stripe plugin.
- Installing and activating the Storefront theme.
- Importing sample products.
- Setting up payment methods.
- Setting up shipping methods.
- Setting up tax settings.
- Setting up coupons.
- Setting up the WooCommerce Blocks pages.
- Setting up the menu.
What if you could run one command that takes care of all these steps? Imagine you could spin up a WordPress site, create an SSH connection to that site and simply run the following command: wp package install git@github.com:nielslange/woo-test-environment.git && wp woo-test-environment setup --blocks --gutenberg --stripe --theme=storefront
This single command then executes all the steps I mentioned before.
Within a few seconds, you’ll then have a complete WooCommerce testing environment! And if you run that command 100 times, you’ll have 100 identical testing sites. Now, how does that sound?