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

Hey 😍

Want to help the DEV Community feel more like a community?

Head over to the Welcome Thread and greet some new community members!

It only takes a minute of your time, and goes a long way!