β About JBang!
JBang!
's pitch is very appealing and easy to understand :
"Unleash the power of Java - JBang Lets Students, Educators and Professional Developers create, edit and run self-contained source-only Java programs with unprecedented ease. "
In this post, we'll go a bit further and introduce AppStore, especially how to release JBang! catalogs
.
ποΈ Catalogs
Catalogs are a very convenient way to deliver from a common place a set of JBang!
applications.
See below some real life examples:
- πͺ Apache Camel : Camel JBang, A JBang-based Camel app for easily running Camel routes.
- βοΈ Microsoft JBang Catalog (Minecraft, Azure Application Insights Agent,...)
-
π Quarkus
jbang-catalog
, Collection of JBang scripts related to Quarkus and its subprojects
π§βπ What you'll learn
Within less than 15'
, you will learn :
- What is a JBang! script
- What's a catalog ?
- How to create and execute your own script
- How to run a remote script on your local machine
- ...
So you'll be fully operational with JBang packaged apps.
ποΈ News π€
So, we, at OPT-NC
have created our own (and public !) JBang! catalog
:
opt-nc
/
jbang-catalog
Catalogue des scripts JBang! de l'OPT-NC (OPT Nouvelle-CalΓ©donie)
Le catalogue JBang de OPT-NC
Ici seront référencés des démos, mini projets, exécutables très facilement grÒce à (J)Bang.
Usage
π PrΓ©requis
sdk install jbang
π Lancer les scripts avec (J)Bang!
Il existe plusieurs faΓ§ons de lancer les scripts rΓ©fΓ©rencΓ©s dans le catalog.
Exemple de hello-optnc
:
En crΓ©ant un alias local au poste de dev :
jbang alias add --name hello-optnc https://github.com/opt-nc/jbang-catalog/blob/main/hello-optnc/HelloOptNc.java
# Check des alias
jbang alias list
# Appel du script
jbang hello-optnc
ou directement
jbang hello-optnc@opt-nc/jbang-catalog
Enfin, pour rester Γ jour des ajouts de la communautΓ©, mettre Γ jour le cache :
jbang cache clear
jbang hello-optnc@opt-nc/jbang-catalog
πΏ Demo
Enjoy this very nice demo from @mbarre :
Top comments (2)