I came across this couple days ago. Basically, Ele...
# lucee
m
I came across this couple days ago. Basically, Electron includes Chromium and Node.js which allows you to develop cross-platform desktop apps with JavaScript, HTML, and CSS https://www.electronjs.org/ With CF, it is probably impossible due to the licensing issue. But I wonder if you can include, somehow, a Lucee server in the build, and if you can, you may be able to build desktop apps using Lucee??? For those who may not know, VS Code, Discord, Microsoft Teams, Slack, Postman, ...etc. are all developed using Electron
b
Yes, you can do it with Lucee. There were some talks in years past doing it with CommandBox bundled with Electron
Our BoxLang admin is actually an electron app running BoxLang miniserver, and we had a talk at ITB about this as well
The nice thing about boxlang/miniserver is the entire runtime AND server is a single 14 Meg jar with no other dependencies. Lucee can be made portable as can CommandBox but it's a lot larger on-disk to distribute
But basically you can start up the server and then just embed the web app in an iframe equiv in your electron app
it's also possible to make the CF back end just be an API, write the front end in Electron/JS and have it just call your API. Different approaches are possible
👍 1
m
Yes, with CF, the API approach is probably the only way.
a
Im pretty sure @domwatson had some wrapper that would allow you to run a java app within the electron app some how and we tested with Lucee so im sure boxlang could also be done
lemme see if i can dig it out
as in shipped in it
t
I gave a talk at ITB2020 on using Electron with Lucee running a ColdBox API and Vue frontend. It leveraged a NPM package that let you make calls to CommandBox, so the Lucee app could run locally alongside the Electron app.
🙌 1
☝️ 1
b
Yep, that's the one I remember
b
Brad, quick question on that. You mentioned the miniserver at 14 Megs with no dependencies. But does the miniserver still require reference to Java somewhere? Trying to understand.
b
Yes, it would require a JRE to run, but the BoxLang runtime and Undertow webserver are around 14 Megs. As opposed to CommandBox + Lucee, CommandBox + Adobe, or Tomcat Standalone + Lucee, etc. None of those other combos would be anywhere in the ballpark as small.
👍 1
c
@nolanerck is giving a presentation on creating electron apps with BoxLang today at Into the Box so timely.
👀 3
m
Great minds think alike