Please note that setup has only been tested on macOS.
You may need to modify the following steps for other operating systems.
For legacy reasons, our WordPress plugin uses the speechkit slug in WordPress.
Clone this repo into a speechkit directory as follows:
git clone git@github.com:beyondwords-io/wordpress-plugin.git speechkit
cd speechkitAfter installing, start Docker.
nvm install
nvm usenpm install
npm run buildnpm run composer -- installEnsure that Docker is running, then start both environments:
npm run env:startThis boots two separate wp-env environments side by side:
| Environment | Port | Config | Used for |
|---|---|---|---|
| Development | 8888 | .wp-env.json |
day-to-day development |
| Tests | 8889 | .wp-env.tests.json |
PHPUnit + Cypress test suites |
If you only need the tests environment (e.g. while iterating on a single test):
npm run env:tests:startAfter some time you should see something like:
WordPress development site started at http://localhost:8888/
WordPress development site started at http://localhost:8889/
Well done, you should now have a functional wp-env development environment for our plugin.
Log into WordPress admin and activate our plugin to get started.
- The default WordPress credentials are Username:
admin, Password:password - The default database credentials are: Username:
root, Password:password
Before you push any commits in Git our automated code quality checks need to pass. See running tests to get the tests running in your wp-env.