โ 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)