mesh-research / cc-client
WordPress plugin for connecting to CommonsConnect server and the Knowledge Commons network.
Installs: 244
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^9
- wpackagist-plugin/bbpress: ^2.6
- wpackagist-plugin/buddypress: ^12.4
- yoast/phpunit-polyfills: ^2.0
This package is auto-updated.
Last update: 2025-05-30 18:21:42 UTC
README
This plugin provides WordPress blocks that interface with the Commons Connect API.
Getting Started
- Install Lando.
- Clone the CommonsConnect repository.
- In the
cc-client
directory, runlando start
. - Open the test site at https://commons-connect-client.lndo.site/.
- You can login to the WordPress admin at https://commons-connect-client.lndo.site/wp-admin/ with the username
admin
and passwordadmin
.
Interacting with the Search API
The Search block requires a running CommonsConnect search service:
- Change to the
cc-search
directory. - Run
lando start
. - In the
cc-client
directory, runlando wp cc search status
to verify that the plugin can connect to the search service. - In the
cc-client
directory, runlando wp cc search provision_test_docs
to load test data into the search service.
Running Tests
Tests use the WordPress test functionality and PHPUnit. They require a running cc-search API. By default this is the local API running on http://commonsconnect-search.lndo.site
.
Tests are located in the tests
directory.
- Change to the
cc-search
directory. - Run
lando start
. - In the
cc-client
directory, runlando start
. - Run
lando phpunit
orlando phpunit-debug
. To run a specific test runlando phpunit --filter <test-name>
.
You can test against a different server configuration by overriding environment variables, as in dev-search-lando-override.lando.yml
.