hydraulic-software / conveyor

Gradle plugin, user guide and discussion forums for Conveyor
https://conveyor.hydraulic.dev
Apache License 2.0
122 stars 9 forks source link

Provide an alternative to NPX #85

Open mipastgt opened 10 months ago

mipastgt commented 10 months ago

In the JVM tutorial you describe how to use conveyor with JVM based applications. In this context it cannot be taken for granted that people have installed NPX and in addition the package 'serve'. It might be a good idea to at least mention in the chapter 'Serve the download site' that the call npx serve . could easily be replaced by just jwebserver assuming you have installed Java 18+. (Serving on port 8000 by default and not 3000!)Why should anybody be forced to use JavaScript frameworks if Java itself has all you need :-)

% $JAVA21_HOME/bin/jwebserver
Binding an Loopback als Standard. Verwenden Sie für alle Schnittstellen "-b 0.0.0.0" oder "-b ::".
Bedient /Users/mpaus/Downloads/tmp/ConveyorDesktopPlayground/conveyor-desktop-playground/output und Unterverzeichnisse auf 127.0.0.1 Port 8000
URL http://127.0.0.1:8000/
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /download.html HTTP/1.1" 200 -
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /icon.svg HTTP/1.1" 200 -
127.0.0.1 - - [27/Okt./2023:14:41:25 +0200] "GET /favicon.ico HTTP/1.1" 404 -
mikehearn commented 10 months ago

We've had mixed luck with other web servers, we'd need to test jwebserver carefully and because it's new just haven't had time to do that yet. The problem is usually missing or buggy range request support. Can you successfully install/update Windows MSIX packages with jwebserver?

mipastgt commented 10 months ago

That's a bit difficult for me to try out at the moment because I only work on macOS.

mikehearn commented 10 months ago

For testing just the Mac version indeed any web server will work. We'll try out jwebserver soon.