DEV Community

Cover image for 🗞️ We have just released our JBang! catalog 🛍️
adriens for opt-nc

Posted on

🗞️ We have just released our JBang! catalog 🛍️

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

🧑‍🎓 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 :

GitHub logo 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
Enter fullscreen mode Exit fullscreen mode

ou directement

jbang  hello-optnc@opt-nc/jbang-catalog
Enter fullscreen mode Exit fullscreen mode

Enfin, pour rester à jour des ajouts de la communauté, mettre à jour le cache :

jbang cache clear
jbang  hello-optnc@opt-nc/jbang-catalog
Enter fullscreen mode Exit fullscreen mode



🍿 Demo

Enjoy this very nice demo from @mbarre :

📑 Resources

Top comments (2)

Collapse
 
adriens profile image
adriens
Collapse
 
adriens profile image
adriens