Integrating the core library
Installation
npm install @lumieducation/h5p-serverAdding the library to your project
const H5P = require('@lumieducation/h5p-server');const h5pEditor = H5P.fs(
await new H5P.H5PConfig(
new H5P.fsImplementations.JsonStorage(
path.resolve('examples/config.json') // the path on the local disc
// where the configuration file is stored
)
).load(),
path.resolve('h5p/libraries'), // the path on the local disc where libraries
// should be stored
path.resolve('h5p/temporary-storage'), // the path on the local disc where
// temporary files (uploads) should
// be stored
path.resolve('h5p/content') // the path on the local disc where content is
// stored
);Handling AJAX Requests made by the core H5P client
Serving static H5P core files for the client
Creating content views
Writing custom interface implementations
Calling maintenance functions regularly
Handling errors
Localization
Customization
Compliance and privacy
Last updated
Was this helpful?