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