OK, Are you sure that you did run npm install inside of the ha-editor folder? Because the errors that you experience are all linked to dependencies not being installed.
Try the npm install command once again, if that doesn’t work you will have to do npm install body-parser --save
And will have to do that a couple more times for all of the dependencies.
These are the dependencies that ha-editor relies on:
“body-parser”
“bootstrap”
“ejs”
“express”
“jquery”
“monaco-editor”
But easy to remap it with docker… e.g. docker run -d -p 3333:3000 -v /usr/share/hassio/homeassistant:/usr/src/app/configFolder voxic/ha-editor
I have created a hassio addon config.json for local install, but I am getting errors when starting it.
I think the image in dockerhub is for ARM64 arch - is this correct?
Finally got around to trying to install the Docker on my Synology. The GUI detects port 3000 but doesn’t run. Getting the following error in docker logs:
I think it has something to do with clicking on a file before the editor is fully loaded. Will change it so that the files are presented after the editor is fully loaded.
I looked at your docker file. Rather than using your arm arch image for hassio addon I’ll try doing full local build with your dockerfile. (When I get time )
I got it working via http but as my entire setup is https is there an option to allow https in the editor - couldnt see anything at first glance … but looks good so far just the browser refuses to include an http iframe in an https session obviously…
HTTPS is down to the hosting of the application. The editor is basically a web application. The standalone version is run with the built-in nodejs server, so if you want https you need to serve the application with something like nginx.
The docker version runs on a base image called boron (nodejs). Maby there is a possibility to enable https in the docker image.