A NodeJS application that packs H5P content into SCORM objects
This utility allows you to package H5P files into SCORM files.
(in comparison to embedding from external sites or using the built-in H5P module of your LMS)
As a conclusion, you should only package H5P into SCORM if there are compelling reasons to do so and if you know what you are doing! If you have administrative rights on your LMS and there is a H5P module for it, you should certainly install this module and upload your content the regular way.
npm install
npm run copy-h5p-standalone
to copy necessary files into the template directoryPORT=8080 npm start
http://localhost:8080
Note that you must fill the placeholders for the imprint, privacy policy and license in /static
. You could do this by mounting a Docker volume into /usr/src/app/static
.
Example for docker-compose:
volumes:
- ./local-dir:/usr/src/app/static
You can log successful packaging in a CSV file using two environment variables:
USE_STATISTICS
to true
STATISTICS_FILE
to a path in the filesystem where the log file should be stored. (optional, defaults to ./statistics.csv
)Example (Linux, local installation):
$ PORT=8080 USE_STATISTICS=true STATISTICS_FILE=my_statistics.csv npm start
Example (Docker):
$ docker run --name "scorm-h5p" --env USE_STATISTICS=true --env STATISTICS_FILE=/usr/src/app/logs/log.csv -p 8085:80 -v /home/USER/scorm-h5p-wrapper/logs:/usr/src/app/logs sr258/scorm-h5p:1.0
There is a running version of this application at https://translate-h5p.tk/scorm-h5p/