Skip to content

AccessibilityNL/H5P-Development-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

H5P Development starter

Requirements

  • Nodejs with NPM

Install

See: https://h5p.org/development-environment

  1. NodeJS
  2. npm install
  3. 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.

  1. 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

  1. Enable H5P Dev mode:

  2. login to drupal dashboard

  3. go to modules panel

  4. scroll down to "other" section

  5. enable h5p Modules

  6. Configure h5p:

1. Check options: "Enable H5P development mode" and "Enable library development directory (For programmers only)"
  1. Go into development dir cd drupal/sites/default/files/h5p/development;

  2. 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

Development

Symlinken

Link src packages to H5P/development folder drupal/sites/default/h5p/development/libraries

Releases

No releases published

Packages

No packages published