openresources/resourcehub-distribution
Composer 安装命令:
composer require openresources/resourcehub-distribution
包简介
Resource Hub distribution
README 文档
README
Resource Hub
The Catalyst Resource Hub is a Drupal based distribution aiming to help small to medium sized charities publish resources and guidance materials to their key audiences. This document is primarily for developers who want to test the product on their local machine or install, deploy and host the product.
Getting started
System requirements
Resource Hub has been designed to be installed via Composer and has baked-in intergration with Lando so the most straight-forward set up, and the one described below, will require the following to be installed on your system:
Quick start: Local project set up (to test)
With Composer and Lando installed, you should be able to open your command line and run the following commands to get a local version of the product up and running for testing or development. You should be able to copy and paste all the folowing lines into your command line.
composer create-project --stability dev --ignore-platform-reqs --no-install --remove-vcs openresources/resourcehub-project:^1.0 resourcehub;
cd resourcehub;
lando start; lando drush si resourcehub install_configure_form.install_demo=1 -y;
This should perform the following tasks:
- Install all the code and dependencies with composer.
- Start Lando containers to run the code
- Run the Drupal site installation enabling the demo content module.
- Provide you with the admin user and password.
If you then navigate in your web browser to either of the following URLs, you should see the site:
http://resourcehub.lndo.site:8000/
https://resourcehub.lndo.site/
Quick start: Local project set up (developers)
If you are developing locally, you probably want to keep the .git version control folders for ease.
composer create-project --stability dev --ignore-platform-reqs --no-install openresources/resourcehub-project:^1.0 resourcehub
cd resourcehub
lando start; lando drush si resourcehub install_configure_form.install_demo=1 -y; lando drush uli;
This should perform the following tasks:
- Install all the code and dependencies with composer.
- Start Lando containers to run the code
- Run the Drupal site installation enabling the demo content module.
- Generate a one time login link to click on and log is as the overall administrator account (user 1).
Install Drupal locally
Install via the UI
- Navigate to https://resourcehub.lndo.site
- Choose 'Resource Hub' from the 'Choose profile' step
- Complete the Drupal configuration step
Install via the command line
- Move into the project directory
- Run
lando drush si resourcehub
Installing demo content
If you're installing Resource Hub to test it out you can choose to have some demo
content automatically created via can be doing via the UI by checking the Install demo content
checkbox or by passing an additional argument to Drush:
lando drush si resourcehub install_configure_form.install_demo=1
If you've already installed Resource Hub then you can simply enable the ResourceHub Demo Content
module.
Running tests
The following command will run the tests provided by the installation profile.
lando phpunit
Code analysis
This project comes with PHPCS and PHPSTAN intergration which allows developers to check their code for Drupal style and standards compatibility.
lando sniff will check the installation profile for Drupal code style compatibility. Using lando phix you may be able to fix these automatically via PHPCBF`.
lando stan will check your code for Drupal standards compatibility including use of deprecated APIs.
Frontend tooling
CSS tooling is based on Laravel Mix.
Watch for file changes in themes/resourcehub_theme/scss and browserSync run lando npx mix watch.
openresources/resourcehub-distribution 适用场景与选型建议
openresources/resourcehub-distribution 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 730 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 03 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 openresources/resourcehub-distribution 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 openresources/resourcehub-distribution 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 730
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2021-03-18