mesh-research/cc-client
Composer 安装命令:
composer require mesh-research/cc-client
包简介
WordPress plugin for connecting to CommonsConnect server and the Knowledge Commons network.
README 文档
README
This plugin provides WordPress blocks that interface with the Commons Connect API.
Getting Started
- Install Lando.
- Clone the CommonsConnect repository.
- In the
cc-clientdirectory, 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
adminand passwordadmin.
Interacting with the Search API
The Search block requires a running CommonsConnect search service:
- Change to the
cc-searchdirectory. - Run
lando start. - In the
cc-clientdirectory, runlando wp cc search statusto verify that the plugin can connect to the search service. - In the
cc-clientdirectory, runlando wp cc search provision_test_docsto 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-searchdirectory. - Run
lando start. - In the
cc-clientdirectory, runlando start. - Run
lando phpunitorlando 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.
Pushing to Composer
Packagist is used to distribute the plugin, including for use on Knowledge Commons.
To push changes to Compose:
- Change to the root commons-connect directory.
- Run
./cc-client-subtree-push.sh
统计信息
- 总下载量: 349
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-18