Local server Node

I've been trying to decipher how to install h5p on a local Node server (almost "newby" with previous experience in LAMP) and I get to the part where Node server is up and I get to see on localhost all the h5p modules but once I enter and click on USE... nothing happens. I'm sure it has to do with routes and downloading the modules but there are no instructions and your proposal of an h5p server is filled with deprecated alarms. Is there a tutorial for content creators with some web experience and not for a savvy sysadmin? I need to work on a local server because of internet connection and export it later to h5p or Moodle. Is this possible? Is it only possible within Moodle? 

 

serettig's picture

Are you talking about the h5p-nodejs-library when you talk about a "Node server"?

I might have used the wrong words or approach. I need to create content OUTSIDE any LMS so, since it's a collection of JS apps and there is no PHP standalone solution (at least something done by H5P team) I used the following logic (again I might be wrong):
1. Let's say I want to use https://github.com/h5p/h5p-drag-text the README file says:

npm install

Install? Where? I'm guessing a NODE js environment to use it. Is this right?
2. I'm trying to find instructions on how to use all this JS code in GIT so since there are no tutorials I did my best trying to learn as fast as I could some Node and installed https://github.com/h5p/h5p-hub-client and there I find an HTML that, once my NODE Server is up I can see the page with all the modules... I'm guessing again (all this guessing could be avoided with some CX/UX alerts any where in the site) I need something else and for a week I've been running experiments installing... https://github.com/h5p/h5p-php-library and https://github.com/h5p/h5p-cli Command Line Interface!! That has to be in the right track... but I'm on a dead-end.



serettig's picture

H5P is not intended to be run that way. The libraries only work within the context of a H5P server, which currently must be WordPress, Moodle or Drupal. There are a few other implementations out there, which are not official. The best official way would be to run your own WordPress in a VM, e.g. with a Bitnami image.

I've been involved in the development of http://lumi.education/, which allows you to create h5p files offline. There might still be bugs, and I absolutely recommend checking whether test packages work in your moodle installation BEFORE you use it for productive use. There has been a bug with images inside packages, which hasn't been resolved yet.

Thank you so much for such clarity! Understood and changing my production funnel: I learned a lot of Node and JS in the process!
Juan