openresources / resourcehub-distribution
Resource Hub distribution
Requires
- bower-asset/mmenu: ^8.5.24
- drupal/admin_toolbar: ^3.0
- drupal/allowed_formats: ^2.0
- drupal/bartik: ^1.0
- drupal/classy: ^1.0
- drupal/color: ^1.0
- drupal/crop: ^2.1
- drupal/default_content: ^2.0@alpha
- drupal/entity_reference_facet_link: ^2.0
- drupal/extlink: ^1.6
- drupal/facets: ^3.0@beta
- drupal/field_group: ^3.1
- drupal/gin: ^3.0@alpha
- drupal/gin_toolbar: ^1.0@beta
- drupal/google_tag: ^1.3
- drupal/image_widget_crop: ^2.3
- drupal/linkit: ^6.0
- drupal/masquerade: ^2.0@beta
- drupal/menu_admin_per_menu: ^1.3
- drupal/metatag: ^1.16
- drupal/oembed_providers: ^2.1
- drupal/paragraphs: ^1.12
- drupal/pathauto: ^1.6
- drupal/rabbit_hole: ^1.0@beta
- drupal/redirect: ^1.5
- drupal/responsive_menu: ^4.0
- drupal/role_delegation: ^1.1
- drupal/search_api: ^1.19
- drupal/shariff: ^2.0
- drupal/simple_sitemap: ^4.1
- drupal/simplify: ^2.1
- drupal/styleguide: ^2.0@beta
- drupal/view_unpublished: ^1.1
- npm-asset/shariff: ^3.2.1
- npm-asset/superfish: ^1.7.10
- openresources/resourcehub_rest: ^1.0@alpha
Replaces
- npm-asset/fortawesome--fontawesome-free: *
- npm-asset/jquery: *
- 1.x-dev
- 1.0.0-beta7
- 1.0.0-beta6
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- dev-feature/195-drupal-10-support
- dev-feature/190-update-modules-to-supported-versions
- dev-feature/169-json-api
- dev-168-move-composer-js-library-configuration-into-distribution-2
- dev-feature/assets
- dev-feature/tweaks
- dev-133-theme-customisation-extend-enhance
- dev-feature/refactor-facetjs
- dev-22-as-a-site-administrator-i-want-to-add-a-site-manager
- dev-feature/76-see-audio-component
- dev-feature/60-add-linkit-to-wysiwyg
- dev-feature/styling-tweaks
- dev-set-sast-config-1
- dev-feature/41-theme
This package is auto-updated.
Last update: 2024-11-06 15:40:50 UTC
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
.