Important: If you use Windows, you must use Bash (comes with Git for windows) as a command shell (otherwise scripts won't run).
git clone https://github.com/lumieducation/h5p-nodejs-library
This will install all dependencies in all packages, run lerna's bootstrap command, linking all cross-dependencies and downloads test-dependencies such as the h5p core and editor library as well as content types.
- node modules needed for every package are located in the root
node_modulefolder. The jest testing framework and
typescriptare used in every package - therefore these are installed in the root
node_modulefolder and made accessible in every package.
- data used for unit and integration tests that are required by more than one package are located in
test/data. Data used for only single packages is located in the respective
You must transpile the TypeScript files to ES5 for the project to work (the TypeScript transpiler will be installed automatically if you run
npm run build
To start the server-side-rendering example run
and open http://localhost:8080 in your browser.