Standalone Server

Hi,

for h5p content creation for our moodle site we use lumi. Now we want to develop css for the h5p content. We'd like to store css code in a separate file persistently in order to develop the css.

But that complicated with the lumi app. So I tried to install a h5p stand alone server on my notebook.

So I installed a gitforwindows from gitforwindows.org which comes a bash and then downloaded

"Source code(tar.gz)"

from 

https://github.com/Lumieducation/Lumi/releases/tag/v0.10.0

But wasn't succesful. I ended up with a message which said: 

 

 

# npm start 

[email protected] start 

cross-env DEBUG=lumi:* LOG_LEVEL=debug PORT=8080 ./node_modules/.bin/electron .

[0122/161347.543964:FATAL:electron_main_delegate.cc(298)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

/mnt/c/Users/DMZ_Admin/node/lumiserver/Lumi-0.10.0/node_modules/electron/dist/electron exited with signal SIGTRAP 

 

So I tried with

 

npm start --no-sandbox

npm  --no-sandbox start

but with the same result.

Can you get me started with runninf h5p stand-alone server on Windows ? Is that the correct way ?

 

Best,

Robert Habeck

 

otacke's picture

Hi!

The code that you tried to build would give you nothing but the Lumi app. It's not an H5P standalone server. I don't think there is any standalone server available that would run as a Windows application. You'd have to turn it into a (local) webserver first and you could then choose to locally run any of the available platforms that support H5P or even your bare bode node.js based H5P integration.

Best,
Oliver

Hi Oliver,

 

Thanks for you help. Now I installed the node.js based H5P integration. In the browser I can see a frontnd like shown in the attachment. However when I click on the button "Create new content" there comes a blank page with a create button in the left upper corner (http://172.30.54.149:8080/h5p/new). When I hit the button, it says "Malformed request". 

Can you get me started here ? Maybe some libraries are nessary ?

Best,

 

Roberthabeck

 

 

 

Attachments: 

Hi Oliver,

 

Thanks for you help. Now I installed the node.js based H5P integration. In the browser I can see a frontnd like shown in the attachment. However when I click on the button "Create new content" there comes a blank page with a create button in the left upper corner (http://172.30.54.149:8080/h5p/new). When I hit the button, it says "Malformed request". 

Can you get me started here ? Maybe some libraries are nessary ?

Best,

 

Roberthabeck

 

 

 

Attachments: 
otacke's picture

I just cloned the repository, installed the modules, started the server and receive the H5P Hub as expected when clicking on "Create new contens". You may want to check the request that is sent in order to find out what might be going wrong on your end.