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
src
folder that includes all the source projects that you may work with. -
Open your IDE such as VS Code or Eclipse.
Note
The
src
folder 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
→JavaETL
folder. - Inside the
JavaETL
folder, locate theconfig.json
file. - Edit
config.json
and click Save.
Using Eclipse
- Navigate to File → Open File, and select
src
→JavaETL
folder. - Inside the
JavaETL
folder, locate theconfig.json
file. - Edit
config.json
and 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.