Lab 08 - Create a Java application
What you will learn
How to use an example that can be some scheduled process to ETL data.
Before you begin
- You have completed Lab 07 - Create an SPA.
- You have Java installed.
- You have Maven installed.
- You have internet connection.
Procedure
-
Download and extract the apps-src.zip from the source for all apps in a folder. You get a
srcfolder that includes all the source projects that you may work with. -
Open your IDE such as VS Code or Eclipse.
Note
The
srcfolder contains 2 JavaScript project folders and a Java project folder that you can work with. You need to make the project folder that you will use with your IDE the current or root folder. Since it’s a Java application, use the JavaETL project folder.Using VSCode
- Navigate to File → Open Folder, and select
src→JavaETLfolder. - Inside the
JavaETLfolder, locate theconfig.jsonfile. - Edit
config.jsonand click Save.
Using Eclipse
- Navigate to File → Open File, and select
src→JavaETLfolder. - Inside the
JavaETLfolder, locate theconfig.jsonfile. - Edit
config.jsonand click Save.
- Navigate to File → Open Folder, and select
-
From your Terminal, select the folder where your project is located, such as
JavaETL, and runmvn clean install(optional) andjava -jar target/etl.jar.
How to verify
A file named sample.csv is created containing the training requests.
Things to explore
-
Modify the app to upload data.
Next step
Proceed to Lab 9 - Unlock additional ports.