jbang-examples
jbang-examples copied to clipboard
Add Quarkus multi file script example.
Quarkus Cryptocurrency example:
Features tested:
- Multi-file script
- External file configuration
- Dependencies version from Bom
- Quarkus/vertx
- OpenAPI
its nice with a multi file example but i'm not sure user will know what to do.. localhost:9090 just shows error and non of the /api/ end points seem to do anything.
Some basic docs/info - maybe in form of a embedded index.html ?
So I've pushed an Html page that uses the script endpoints. With this example, the end-user just have to run the main script:
jbang stockCryptoCurrency.java
Then go to http://localhost:9090 on their browser, and from there they will load all cryptocurrency names (by default they don't have to do anything)... this is the heaviest part from a network point of view. Then, they could click over the names and get the current stock market value....in Euros, Bitcoins, and US dollars.
Note: Also this command should work
jbang https://github.com/pjgg/jbang-examples/blob/example/quarkus-multifile/examples/quarkus-cryptocurrency/stockCryptoCurrency.java
Amazing!!! @maxandersen
i missed this one - does the example actually work for you now ? I'm wondering if something broke on jbang side or the script itself?
index.html just says "Loading...." for me ?