- Nodejs with NPM
See: https://h5p.org/development-environment
- NodeJS
npm install
- Setup your PHP dev environment
- Use MAMP, XAMP or other similar software to quickboot. Clone / install this project in the httdocs folder and start the server.
TODO: Use a container installation with Docker or similar software.
- Start the dev server and install drupal and configure.
Start server for the contents of
drupal
dir, see notes for step 2
Follow drupal instructions
-
Enable H5P Dev mode:
-
login to drupal dashboard
-
go to modules panel
-
scroll down to "other" section
-
enable h5p Modules
-
Configure h5p:
1. Check options: "Enable H5P development mode" and "Enable library development directory (For programmers only)"
-
Go into development dir
cd drupal/sites/default/files/h5p/development
; -
Start importing the H5P modules you wish to develop / improve by using H5P's cli tool.
Enter the command
npx h5p
to see a list of options. You will mostly use the h5p list and get commands to see what modules are available and to get them.
To enable and edit the modules you are required to import both the module and its editor equivalent to add interactive content with drupal.
EXAMPLE:
npx h5p get h5p-true-false
Link src packages to H5P/development folder drupal/sites/default/h5p/development/libraries