...
This tutorial introduces the IGB platform by demonstrating a very simple IGB App that adds a new entry to the IGB Tools Edit menu.
Get started: clone IGB Hello World App
...
Code Block |
---|
git clone https://bitbucket.org/lorainelab/igb-app-hello-world.git |
...
Compile the App
To build your AppNext, open the igb-app-hello-world project into Netbeans, select the project in Netbeans.
Select the Hello World IGB App in the Netbeans Projects tab, right-click, and select and then select Run > Build.
Alternatively, you can build it from the command line by entering:
Code Block | ||
---|---|---|
| ||
mvn clean install |
Building the App will create a new directory named "target" which can serve as a new App repository. This new directory contains compiled code as well as a meta-data about the App it contains.
...
Normally, Apps are deployed on-line via an App Store or your own on-line App repositoryin a Web-accessible location called an "App Store." This enables multiple users to install and run them.
However, you can also deploy an App Store on your local computer - useful for developing and testing new Apps.
...
- Start IGB
- Select Tools > Open App Manager
- Click Manage Repositories... button (opens Plug-in Repositories tab in Preferences window)
- Click Add... button (opens Plugin Repository dialog)
- Enter a name for your repository (can be anything)
- Click Choose local folder button
- Select the "target" folder in your igb-app-hello-world project folder.
Once you add "target" as a new local App store, you should see the Hello World App added as a new App in the IGB App Manager window, as show below:
...
Next step: Modify your code
Open the IGB App project in Netbeansfile MenuBarExpansionExample.java in the Netbeans editor. Edit the message your IGB App prints and re-build your App. Then, return to the IGB App Manager, un-install and then re-install your App. When you select the the menu item again, the a dialog should appear showing your new message will print instead of the old one.
Note that you can rapidly repeat this edit-build-uninstall-install cycle. You don't have to re-build IGB or even restart it, which makes development much faster than if you had to modify the IGB code directly.
...