Skip to content

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

  1. 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.

  2. 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

    1. Navigate to FileOpen Folder, and select srcJavaETL folder.
    2. Inside the JavaETL folder, locate the config.json file.
    3. Edit config.json and click Save.

    Using Eclipse

    1. Navigate to FileOpen File, and select srcJavaETL folder.
    2. Inside the JavaETL folder, locate the config.json file.
    3. Edit config.json and click Save.
  3. From your Terminal, select the folder where your project is located, such as JavaETL, and run mvn clean install (optional) and java -jar target/etl.jar.

How to verify

A file named sample.csv is created containing the training requests.

Things to explore

Next step

Proceed to Lab 9 - Unlock additional ports.